p:http-request: error content

  Hi,

  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>

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/

Received on Tuesday, 3 February 2009 17:45:27 UTC