This HTTP status code list covers every code in the IANA registry, from 100 Continue to 511 Network Authentication Required, with the meaning, when to use it, when not to, whether caches may store it, and the RFC section that defines it. Type a number, a class such as 4xx, or a word such as “redirect” or “rate limit” to filter, and link straight to any code with an anchor such as #404 or #503.
The official entries follow RFC 9110 (2022), which replaced RFC 7231 and renamed a few codes: 413 is now Content Too Large and 422 is Unprocessable Content. Codes you see in logs but will not find in the registry, such as nginx 499 or Cloudflare 522, are included too and marked unofficial, with the system that sends them. It is a reference, not a monitor: it does not fetch URLs or check what status a live site returns.
How to use
- Type a code (503), a class (4xx) or a keyword (timeout, redirect, cache) into the search box. Results filter as you type.
- Use the class buttons to see only 1xx, 2xx, 3xx, 4xx or 5xx codes, and untick “Include unofficial codes” to hide vendor-specific ones.
- Click a code to expand it: meaning, when to use it, when not to, caching behaviour, the defining RFC and an example response.
- Use “Copy link to this code” to share a direct link such as /tools/http-status-codes#429.
Frequently asked questions
What is the difference between 401 and 403?
401 Unauthorized means the request has no valid credentials: the client is not logged in, or the token expired. The server must send a WWW-Authenticate header saying how to authenticate. 403 Forbidden means the server knows who the client is, or does not need to, and still refuses; logging in again will not help. In short, 401 is “who are you?” and 403 is “I know, and no.”
Should I use 301 or 308 for a permanent redirect?
Both are permanent and both pass ranking signals in Google. The difference is the method: when following a 301, browsers may turn a POST into a GET, while 308 requires the client to repeat the same method and body. For ordinary page moves 301 is fine; for an API endpoint that receives POST or PUT, use 308. The same pairing exists for temporary redirects: 302 may change the method, 307 must not.
What does 499 mean in nginx logs?
499 Client Closed Request is an nginx-only code. It is logged when the client closed the connection before nginx sent a response, so the client never actually receives a 499. Occasional 499s are users navigating away; many on one endpoint usually mean it is too slow and clients or an upstream load balancer are timing out first.
What is the difference between 502, 503 and 504?
All three come from a server that sits in front of another one. 502 Bad Gateway means the proxy got an invalid response or a dropped connection from the upstream app. 503 Service Unavailable means the server is temporarily unable to handle requests, usually overload or maintenance, and should include Retry-After. 504 Gateway Timeout means the proxy gave up waiting for the upstream to answer.
Is 418 I'm a teapot a real status code?
It started as an April Fools’ joke in RFC 2324 (1998) and was implemented by enough software that RFC 9110 now lists 418 as “(Unused)”: reserved so it is never given a real meaning. It is not an error you should send for real problems, but it is safe to keep in an Easter egg.
Which status codes can be cached by default?
RFC 9110 names 200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414 and 501 as heuristically cacheable, which means a cache may store them even without Cache-Control or Expires. RFC 7725 adds 451. Other codes, including 302 and 307, are cached only when the response carries explicit freshness information, and RFC 6585 says 428, 429, 431 and 511 must not be stored at all.
The five classes at a glance
• 1xx Informational: interim responses before the final one. You rarely handle them directly; 101 (WebSocket upgrade) and 103 (Early Hints) are the ones that matter in practice.
• 2xx Success: the request worked. 200 for a normal response, 201 when something was created (with a Location header), 204 when there is deliberately no body.
• 3xx Redirection: the client must look elsewhere. 301/308 for permanent moves, 302/307 for temporary ones, 303 after a form POST, 304 when the cached copy is still valid.
• 4xx Client error: the request is wrong and repeating it unchanged will fail again. 400 malformed, 401 not authenticated, 403 not allowed, 404 not found, 409 conflict, 422 failed validation, 429 rate limited.
• 5xx Server error: the request may be fine but the server failed. 500 is a bug, 502/504 are proxy-to-upstream failures, 503 is temporary unavailability.
Choosing the right code in an API
Return the most specific code a generic client can act on, and put the detail in the body. A retrying HTTP client, a CDN or a monitoring system knows what 429 and 503 mean without reading your JSON, but it cannot interpret a 200 with {"error": true}. RFC 9457 (Problem Details) gives a standard JSON shape for error bodies.
A practical mapping for most JSON APIs: 400 for unparseable input, 422 for well-formed input that fails validation, 401 when the token is missing or expired, 403 when the user lacks permission, 404 for unknown IDs (also to hide resources a user may not see), 409 for duplicates and version conflicts, 412 when an If-Match ETag is stale, 429 with Retry-After for rate limits, and 503 with Retry-After for planned downtime.
Do not invent new numbers. Clients treat an unknown code as the x00 of its class (an unknown 4xx is handled like 400), so a custom 461 gains you nothing over 400 plus a clear message.
Status codes and SEO
Search engines read status codes literally. A 301 or 308 transfers the old URL’s signals to the new one; a 302 or 307 tells Google to keep the old URL indexed. 404 and 410 both remove a page from the index over time. A 200 page that says “not found” is a soft 404, which Google detects and reports in Search Console. For maintenance, a short period of 503 with Retry-After keeps rankings intact, while a 200 “we’ll be back” page can replace your content in search results. Googlebot also slows its crawl rate when it sees 429, 500 or 503.
