What are HTTP status codes?
They are 3-digit codes a web server returns with every response, indicating the outcome of the request: 2xx means success, 3xx is a redirection, 4xx indicates a client-side error (e.g. page not found), and 5xx indicates a server-side error.
How to use it
Type a code (e.g. "404") or a keyword (e.g. "not found", "redirect", "timeout") to filter the table instantly.
Codes that cause the most confusion
- 401 means authentication is missing; 403 means you are identified but not allowed.
- 404 says the resource does not exist, whereas 410 says it was removed on purpose.
- 502 and 504 come from a proxy or gateway: the first got an invalid reply from the origin server, the second waited too long for one.
- 503 usually signals maintenance or temporary overload.
Tip for API design
When designing an API, 201 fits a successful creation, 204 a success with no response body, and 422 data that arrived well formed but failed validation. Picking the right code spares API consumers from parsing the text message.
For redirects, 307 and 308 preserve the request method (a POST stays a POST), unlike what may happen with 301 and 302.
Frequently asked questions
What is the difference between 301 and 302?
301 is a permanent redirect (browsers and search engines should update the link to the new address), while 302 is temporary (the original address should keep being used in the future) — using the wrong code can hurt a site's SEO.
What does error 429 mean?
"Too Many Requests" — the client sent too many requests in a short period, and the server is rate-limiting it to protect itself from overload or abuse.