Thanks for the LiveHeaders link, it seems quite useful.

When I set status in my Restlet to Status.CLIENT_ERROR_NOT_FOUND, Mozilla gets
the following header:

http://localhost:8080/crsc/Crop-record/1

GET /crsc/Crop-record/1 HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4)
Gecko/20070515 Firefox/2.0.0.4
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,
text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

HTTP/1.x 404 Not Found
Server: Apache-Coyote/1.1, Noelios-Restlet-Engine/1.0.1
Date: Fri, 22 Jun 2007 13:35:54 GMT
Transfer-Encoding: chunked

-----------------------------------------------------------------

When I use a regular Java Servlet instead, and set the Servlet status to
HttpServletResponse.SC_NOT_FOUND, Mozilla gets the following header:

http://localhost:8080/crsc/Crop-record/2

GET /crsc/Crop-record/2 HTTP/1.1
Host: localhost:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.4)
Gecko/20070515 Firefox/2.0.0.4
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,
text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive

HTTP/1.x 404 Not Found
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Content-Length: 952
Date: Fri, 22 Jun 2007 13:36:13 GMT

Reply via email to