Skip to content
CornerTools

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.

Class

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 that are often confused, and what tells them apart
CodesThe difference
401 Unauthorized, 403 Forbidden401: 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 Content400: the request cannot be read (malformed JSON, a missing parameter). 422: it reads fine, but its values break the rules.
404 Not Found, 410 Gone404: 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 RedirectBoth permanent. A POST may become a GET after a 301; after a 308 it stays a POST.
302 Found, 307 Temporary Redirect, 303 See Other302 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 Timeout502: 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 Unavailable429: 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

Reviewed

Frequently asked questions

Cloudflare sits in front of the site and could not reach the site's own server: it got no reply to its connection within 19 seconds, or no data for 90 seconds after connecting. The fault is at the site's server or its firewall, not in your browser; the site's owner fixes it. 521 means the server refused the connection, and 524 that it connected but answered too slowly.
The client closed the connection before nginx could answer — a visitor left the page, or an app, script or load balancer in front gave up waiting. nginx sends nothing and logs 499. Many of them usually mean a slow backend, or a client timeout shorter than the backend's work.
Laravel's answer when a form's CSRF token is missing or out of date, most often because the page was left open until the session expired. Reload the page and submit the form again. It is not a standard code.
It began as an April Fools' joke, RFC 2324 of 1998. It never became a real code, but so much software answers 418 as an Easter egg that RFC 9110 reserved the number so that nothing else is given it.

See also