By using this site you agree to the use of cookies by Brugbart and our partners.

Learn more

HTTP Response Codes

A list of HTTP Response Codes, and a link to a page explaining each of them in detail.

Edited: 2013-07-12 08:19

Servers communicate trough HTTP Response Codes, these are status codes used to tell search engines and browsers, whether a requested resource exists, has been moved permanently or temporarily.

Success Codes

The below is a table of common HTTP Response Codes.

200 OKThe server returned the resource successfully.
201 CreatedThe request has been fulfilled and resulted in a new resource being created.
202 AcceptedThe request has been accepted for processing, but the processing has not been completed.
203 Non-Authoritative InformationThe 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.
204 No ContentThe server has fulfilled the request but does not need to return an entity-body, and might want to return updated metainformation.
205 Reset ContentThe server has fulfilled the request and the user agent SHOULD reset the document view which caused the request to be sent.
206 Partial ContentThe server has fulfilled the partial GET request for the resource. The request must have included a Range header field.
304 Not ModifiedThe resource has not been modified, and no response body is sent.

Redirection Codes

Here are some of the common redirection codes. Most of these response codes should be sent a long with a location for the new resource, which should be provided in the location header.

301 Moved PermanentlyThe resource has Permanently moved, and future requests should be made for the given URL.
302 FoundThe resource is temporarily located at a different location, and since this location may change from time to time, the client should continue to use the original URL for future requests.
303 See OtherThe response for the request can be found at a different URL.

Error Codes

These are some of the common error codes send by servers.

400 Bad RequestThe syntax of the request was bad, and the client should not repeat the request without modifications.
401 UnauthorizedThe request requires a user to be logged in, the response must include a WWW-Authenticate header field.
403 ForbiddenThe server understood the request, but is refusing to fulfill it. I.e. The user entered a wrong username or password.
404 Not FoundThe requested resource could not be found. I.e. Nothing can be found here, i have looked absolutely everywhere technically possible, and nothing can be found.

See also

  1. PHP Header – how to send headers with PHP.
  2. HTTP Location Header – about the HTTP Location Header, used for redirection.