Common HTTP 1.1 Status
Codes
200 (OK)
Everything is fine; document follows
Default for servlets
204 (No Content)
Browser should keep displaying previous document
301 (Moved Permanently)
Requested document permanently moved elsewhere
(indicated in Location header)
Browsers go to new location automatically
51
Servlets
www.corewebprogramming.com
Common HTTP 1.1 Status
Codes (Continued)
302 (Found)
Requested document temporarily moved elsewhere
(indicated in Location header)
Browsers go to new location automatically
Servlets should use sendRedirect, not setStatus, when
setting this header. See example
401 (Unauthorized)
Browser tried to access protected page without proper
Authorization header. See example in book
404 (Not Found)
No such page. Servlets should use
sendError to set this header
Problem: Internet Explorer 5.0
52
Servlets
www.corewebprogramming.com
26