W3C home > Mailing lists > Public > xproc-dev@w3.org > February 2009

RE: http-request: error content

From: <Toman_Vojtech@emc.com>
Date: Wed, 4 Feb 2009 02:22:26 -0500
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870E6BC1A2@CORPUSMX10A.corp.emc.com>
To: <xproc-dev@w3.org>

>   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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 4 February 2009 07:23:18 GMT