RE: http-request: error content

>   On an error, HTTP servers sometimes return content anyway.  For
> instance, on a 404 error, the server can send an HTML page
> describing the error to the human user.  Even if this is not the
> expected media type.  In such a case, what should be the result
> of the step?
> 
>   Is it handled the normal way?  I.e. by returning something like
> the following:
> 
>     <c:response status="404">
>        <c:header .../>
>        <c:header .../>
>        <c:body content-type="text/html">
>           ...
>        </c:body>
>     </c:response>
> 

I think so. From the p:http-request perspective, 404 is just a status
code liky any other, and by default, the step does not fail. The
response is therefore processed as usual, I think.

Regards,
Vojtech

Received on Wednesday, 4 February 2009 07:23:17 UTC