HTTP status codes

The list of all HTTP status codes, their name, and their meaning.

About HTTP status codes

A searchable reference of every standard HTTP status code, grouped into the five classes (1xx informational, 2xx success, 3xx redirection, 4xx client error, 5xx server error), with the official name and a short explanation of each.

When you would use it

How to use it

  1. Type a code, a name or a keyword in the search box; results update as you type and match approximately.
  2. Leave the search empty to browse all codes by class.
  3. Read the name and description of the code you need.

Things worth knowing

Frequently asked questions

Which code should an API return when a resource is not found?
404 for a missing resource at a valid path, and 410 when it existed but was deliberately removed. Use 400 or 422 when the problem is the request body rather than the path.
What is the difference between 500, 502, 503 and 504?
500 is a generic server error, 502 means a gateway received an invalid response from an upstream server, 503 means the service is temporarily unavailable or overloaded, and 504 means the upstream did not answer in time.

All the tools