HTTP Status Code Some common status codes are: 200 - The server successfully returns the web page 404 - The requested web page does not exist 503 - The service is unavailable All status explanations: Click to view
1xx (Ad Hoc Response) A status code that represents a temporary response and requires the requester to continue the action.
Code Description 100 (Continue) The requestor shall proceed with the request. The server returns this code to indicate that the first part of the request has been received and is waiting for the rest. 101 (Switchover Protocol) The requester has requested the server to switch protocols, and the server has acknowledged and prepared to switch.
2xx (Success) A status code that indicates that the request was successfully processed. Code Description 200 (Success) The server has successfully processed the request. Typically, this means that the server served the requested web page. 201 (Created) The request succeeds and the server creates a new resource. 202 (Accepted) The request has been accepted by the server, but has not yet been processed. 203 (Unauthorized Information) The server has successfully processed the request, but the information returned may be from another source. The 204 (no content) server successfully processed the request but returned nothing. The 205 (Reset Content) server successfully processed the request but returned nothing. 206 (partial) The server successfully processed some of the GET requests.
3xx (Redirect) Indicates that further action is required to complete the request. Typically, these status codes are used for redirects.
Code Description 300 (multiple choices) The server can perform a variety of actions on the request. The server can select an action based on the requester (user agent) or provide a list of actions for the requester to choose from. The page of the 301 (permanently moved) request has been permanently moved to a new location. When the server returns this response (in response to a GET or HEAD request), it automatically redirects the requester to a new location. The 302 (Temporary Move) server currently responds to requests from a web page in a different location, but the requester should continue to use the original location for future requests. 303 (View Other Locations) The server returns this code when the requester should use a separate GET request for a different location to retrieve the response. 304 (Unmodified) The requested web page has not been modified since the last request. When the server returns this response, the web content is not returned. 305 (Use proxy) The requester can only use the proxy to access the requested web page. If the server returns this response, it also means that the requester should use a proxy. 307 (Temporary Redirect) The server currently responds to requests from a web page in a different location, but the requester should continue to use the original location for future requests.
4xx (Request Error) These status codes indicate that the request may have gone wrong, preventing the server from processing it.
Code Description 400 (Error Request) The server does not understand the syntax of the request. 401 (Unauthorized) Requests require authentication. For web pages that require login, the server may return this response. 403 (prohibited) The server rejects the request. 404 (Not Found) The server could not find the requested web page. 405 (Method Disabled) Disables the method specified in the request. 406 (Not Accepted) Web pages that cannot respond to requests using the requested content attributes. 407 (Agent authorization required) This status code is similar to 401 (not authorized), but the designation requester should authorize the use of the agent. 408 (Request Timeout) A timeout occurs while the server waits for a request. 409 (Conflict) The server crashes while completing a request. The server must include information about the conflict in the response. 410 (Deleted) If the requested resource has been permanently deleted, the server returns this response. 411 (Valid Length Required) The server does not accept requests that do not contain a valid Content Length header field. 412 (Prerequisites not met) The server does not meet one of the prerequisites set by the requester in the request. 413 (Request entity is too large) The server cannot process the request because the request entity is too large to exceed the server's processing capacity. 414 (Requested URI is too long) The requested URI (usually a web address) is too long for the server to process. 415 (Unsupported Media Types) The format of the request is not supported by the request page. 416 (Request scope not compliant) If the page cannot provide the scope of the request, the server returns this status code. 417 (Expected Not Met) The server does not meet the requirements for the Expected request header field.
5xx (server error) These status codes indicate that an internal error occurred when the server tried to process the request. These errors may be errors on the server itself, not on the request.
Code Description 500 (Error within the server) The server encountered an error and could not complete the request. 501 (not yet implemented) The server does not have the ability to complete the request. For example, this code may be returned when the server does not recognize the request method. The 502 (Error Gateway) server acts as a gateway or proxy and receives an invalid response from the upstream server. 503 (Service Unavailable) The server is currently unavailable (due to overload or downtime maintenance). Usually, this is only a temporary state. 504 (Gateway Timeout) The server acts as a gateway or proxy, but does not receive a request from the upstream server in a timely manner. 505 (HTTP version not supported) The server does not support the version of the HTTP protocol used in the request
|