HTTP Status Codes
Look up any HTTP status code: what it means, when to send it and how caches and clients treat it, from RFC 9110 and IANA.
1xx · Informational
2xx · Successful
3xx · Redirection
4xx · Client error
5xx · Server error
All 64 codes in the IANA HTTP status code registry, and 11 unofficial ones that Cloudflare, nginx and Laravel send, each with what it means, when to use it and the usual mistake. Open a code to see the headers that go with it (the ones its RFC requires marked), whether a cache may keep it without being told, what a redirect does to a POST, and the section of the RFC that defines it.
Search by number, by the start of one (40, 5xx) or by words, which also match former names such as Payload Too Large and words people search for, such as rate limit. Add #404 to the page's address to link straight to a code.
Reading the marks
- Unofficial — not in the registry. Each is named after the software that sends it, from its own documentation or source; other software may use the same number for something else.
- Temporary registration — 104 Upload Resumption Supported belongs to a draft that is not yet an RFC. The registry lists it as expiring on 13 November 2026; it may be removed or registered again.
- Unused — 306 and 418, which are reserved and never sent. The registry names both "(Unused)"; 418 is listed by the name people search for, I'm a teapot. Deprecated (305) and Obsolete (510) are not to be sent either.
- WebDAV — defined for WebDAV file servers (RFC 4918, RFC 5842), though 422 has since joined HTTP itself.
Cacheable by default means a cache may reuse the response for a while it estimates itself, when the response carries no Cache-Control or Expires. That holds for 200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414, 451, 501: RFC 9110's list, and 451 from RFC 7725. Any other code is stored only when its headers allow it, and RFC 6585 forbids caches to store 428, 429, 431 and 511 at all. This is why a 301 sent by mistake can stick in browsers long after the server is fixed.
A number with no entry is read by its first digit, as RFC 9110 §15 tells clients to: 471 is treated as 400 Bad Request. A number of three digits or more outside 100–599 is not a status code, and a client treats the response as a server error; one or two digits search for the codes that start with them.
Choosing between similar codes
| Codes | The difference |
|---|---|
| 401 Unauthorized, 403 Forbidden | 401: not signed in, or the credentials are not accepted; signing in may help. 403: signed in, or not, and still not allowed. |
| 400 Bad Request, 422 Unprocessable Content | 400: the request cannot be read (malformed JSON, a missing parameter). 422: it reads fine, but its values break the rules. |
| 404 Not Found, 410 Gone | 404: nothing here, permanently or not. 410: it was here and was removed for good, so links to it can be dropped. |
| 301 Moved Permanently, 308 Permanent Redirect | Both permanent. A POST may become a GET after a 301; after a 308 it stays a POST. |
| 302 Found, 307 Temporary Redirect, 303 See Other | 302 and 307 are temporary: a POST may become a GET after a 302, never after a 307. 303 always sends the client on with a GET, for showing a result after a form. |
| 502 Bad Gateway, 503 Service Unavailable, 504 Gateway Timeout | 502: the server behind a proxy sent a bad answer or none. 503: the service itself is down or overloaded for now. 504: the server behind the proxy answered too slowly. |
| 429 Too Many Requests, 503 Service Unavailable | 429: this client sent too many requests. 503: the service cannot take requests from anyone just now. Both may say when to retry. |
Sources
Names and numbers come from the IANA registry, read on 19 November 2026. Meanings, required headers and caching come from RFC 9110 (HTTP Semantics) and the RFCs that registered each code; the descriptions are written for this page, not copied. Unofficial codes come from Cloudflare's error pages, nginx's documentation and source, and Laravel's exception handler.
Sources
- Hypertext Transfer Protocol (HTTP) Status Code Registry — IANA
- RFC 9110: HTTP Semantics, Section 15 — IETF
- RFC 6585: Additional HTTP Status Codes — IETF
- RFC 7725: An HTTP Status Code to Report Legal Obstacles — IETF
- RFC 8297: An HTTP Status Code for Indicating Hints — IETF
- RFC 8470: Using Early Data in HTTP — IETF
- Resumable Uploads for HTTP (Internet-Draft) — IETF
- Cloudflare 5xx errors — Cloudflare
- Module ngx_http_rewrite_module: return — nginx
- ngx_http_request.h — nginx
- Illuminate\Foundation\Exceptions\Handler — Laravel
Reviewed
Frequently asked questions
See also
- cURL Command Generator — to build a curl command and see a server's status yourself.
- cURL to Code Converter — to turn a curl command into code that checks the status.