HTTP Status codes for easy reference

This page is a list of the HTTP status codes.  These codes are returned by the HTTP server to the HTTP client (the browser), and are also noted into the access log file.
These status codes come from RFC 2068 which can be found at kashpureff, ISI, and other places.
 
 
  1. Information 1xx

  2. this class of status code indicates a provisional response,    consisting only of the Status-Line and optional headers, and is terminated by an empty line. Since HTTP/1.0 did not define any 1xx  status codes, servers MUST NOT send a 1xx response to an HTTP/1.0 client except under experimental conditions.
  3. Successful 2xx 
    This class of status code indicates that the client's request was successfully received, understood, and accepted.
  4.    The returned metainformation in the entity-header is not the definitive set as available from the origin server, but is gathered
       from a local or a third-party copy. The set presented MAY be a subset or superset of the original version. For example, including local
       annotation information about the resource MAY result in a superset of the metainformation known by the origin server. Use of this response
       code is not required and is only appropriate when the response would otherwise be 200 (OK).
  5.  204 No Content
  6. The server has fulfilled the request but there is no new information to send back. If the client is a user agent, it SHOULD NOT change its
       document view from that which caused the request to be sent. This  response is primarily intended to allow input for actions to take
       place without causing a change to the user agent's active document view. The response MAY include new metainformation in the form of
       entity-headers, which SHOULD apply to the document currently in the user agent's active view.
       The 204 response MUST NOT include a message-body, and thus is always terminated by the first empty line after the header fields.
  7. 205 Reset Content

  8. The server has fulfilled the request and the user agent SHOULD reset  the document view which caused the request to be sent. This response is primarily intended to allow input for actions to take place via user input, followed by a clearing of the form in which the input is given so that the user can easily initiate another input action. The response MUST NOT include an entity.
  9. 206 Partial Content

  10. The server has fulfilled the partial GET request for the resource.   The request must have included a Range header field (section 14.36) indicating the desired range. The response MUST include either a Content-Range header field (section 14.17) indicating the range included with this response, or a multipart/byteranges Content-Type including Content-Range fields for each part. If multipart/byteranges is not used, the Content-Length header field in the response MUST match the actual number of OCTETs transmitted in the message-body.
       A cache that does not support the Range and Content-Range headers MUST NOT cache 206 (Partial) responses.
  11. Redirection 3xx

  12.    This class of status code indicates that further action needs to be taken by the user agent in order to fulfill the request. The action required MAY be carried out by the user agent without interaction with the user if and only if the method used in the second request is GET or HEAD. A user agent SHOULD NOT automatically redirect a request more than 5 times, since such redirections usually indicate an infinite loop.
  13. Client Error 4xx
  14. The 4xx class of status code is intended for cases in which the client seems to have erred. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. These status codes are applicable to any request method. User agents SHOULD display any included entity to the user.

    Note: If the client is sending data, a server implementation using TCP should be careful to ensure that the client acknowledges receipt of the packet(s) containing the response, before the server closes the input connection. If the client continues sending data to the server after the close, the server's TCP stack will send a reset packet to the client, which may erase the client's unacknowledged input buffers before they can be read and nterpreted by the HTTP application.

  15. Server Error 5xx

  16.    Response status codes beginning with the digit "5" indicate cases in which the server is aware that it has erred or is incapable of performing the request. Except when responding to a HEAD request, the server SHOULD include an entity containing an explanation of the error situation, and whether it is a temporary or permanent condition. User agents SHOULD display any included entity to the user. These response codes are applicable to any request method.
     

       The server encountered an unexpected condition which prevented it from fulfilling the request.
         The server does not support the functionality required to fulfill the request. This is the appropriate response when the server does not recognize the request method and is not capable of supporting it for any resource.
         The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.
         The server is currently unable to handle the request due to a temporary overloading or maintenance of the server. The implication is that this is a temporary condition which will be alleviated after some delay. If known, the length of the delay may be indicated in a Retry-After header.  If no Retry-After is given, the client SHOULD handle the response as it would for a 500 response.
         Note: The existence of the 503 status code does not imply that a server must use it when becoming overloaded. Some servers may wish  to simply refuse the connection.
         The server, while acting as a gateway or proxy, did not receive a timely response from the upstream server it accessed in attempting to complete the request.    The server does not support, or refuses to support, the HTTP protocol version that was used in the request message. The server is indicating that it is unable or unwilling to complete the request using the same major version as the client, as described in section 3.1, other than with this error message. The response SHOULD contain an entity describing why that version is not supported and what other protocols are supported by that server.
     
     
see new web server .web server .web server .