Edit Edit

Java Servlet FAQ


What are some common status codes?


The HttpServletResponse class has predefined constants for the status codes:


Status Code
Description
SC_OKThe request was successful.
SC_NOT_FOUNDThe requested resource was not found.
SC_UNAUTHORIZEDThe request was not authorized.
SC_MOVED_TEMPORARILYThe request has been moved temporarily to a new location.

For a complete list of the status codes, look in the Java Servlet API Specification from Sun. For a complete list of status codes and a description of each code, look in Appendix C of Java Servlet Programming.




Last updated 12/27/1999 08:55:32 PM