How to search
The reference is built in and works offline. Type any of these, and separate several queries with commas or new lines:
- A code:
404. A pasted status line likeHTTP/1.1 404 Not Foundworks too. - A class:
4xx,5XXor just5. You get every code in that class, starting with a heading. - The first two digits:
30lists 300–308. - Words:
rate limit,timeout,redirect,cloudflare. Every word must match the start of a word in the reason phrase, search keywords or meaning. Matches in the reason phrase rank first, and registered codes rank above vendor codes.
The status bar shows how many codes matched. If nothing matches, the output explains why and suggests a better query instead of showing an error.
Example
The default sample, 429, gives:
429 Too Many Requests
Class 4xx Client Error
Spec RFC 6585
Meaning The client sent too many requests in a given time (rate limiting).
Use Add Retry-After (seconds or a date) so clients back off correctly. Use 503 for server overload that is not about this client’s rate.
With Detail set to One line each, rate limit returns a compact list:
429 Too Many Requests — The client sent too many requests in a given time (rate limiting).
420 Enhance Your Calm [unofficial: Twitter] — Old Twitter API rate-limit response; replaced by 429.
What’s included
All codes in the IANA HTTP Status Code Registry, with the reason phrases RFC 9110 uses. Two were renamed recently: 413 is now Content Too Large (formerly Payload Too Large) and 422 is Unprocessable Content (formerly Unprocessable Entity). The list also covers the extension codes 103 Early Hints (RFC 8297), 207/208/423/424/507/508 from WebDAV, 226 IM Used, 425 Too Early (RFC 8470), 428/429/431/511 (RFC 6585) and 451 Unavailable For Legal Reasons (RFC 7725). Reserved and retired entries are labelled: 306 and 418 are “(Unused)”, 305 is deprecated and 510 is obsoleted.
Vendor codes that show up in real logs are included and marked unofficial. Turn off Vendor codes to hide them from class and keyword searches:
- nginx: 444, 494–497, 499
- Cloudflare: 520–527 and 530
- AWS load balancers: 460, 463
- Laravel: 419; IIS: 440, 449; Apache/cPanel: 509
Choosing the right code
- Don’t return 200 for an error. Clients, caches and monitoring treat 200 as success. Use a 4xx or 5xx code with an error body.
- Send 201 for creation, with a
Locationheader that points to the new resource. Send 204 when there is nothing to return. A 204 response must not have a body. - Use 409 for duplicates and 412 for stale ETags. If you want clients to always send
If-Match, answer 428 when they don’t. - Send 503 with
Retry-Afterfor maintenance. Search engines treat it as temporary, but a 500 or 404 can get pages dropped. - Use 502 for a broken upstream and 504 for a slow one. Both are generated by proxies, so check the application’s logs, not just the proxy’s.
To reproduce a response, build the request with curl and turn it into code with cURL to code. When a 415 is caused by a wrong Content-Type, look up the right type in the MIME type lookup. If a bad query string causes a 400, decode it with the URL encoder.
Look-up pages
Each of the codes people look up most has its own page with causes, fixes and an example that opens here: 301, 302, 304, 400, 401, 403, 404, 429, 500, 502, 503, 504. All of them are listed in the reference.
Frequently asked questions
What is the difference between 401 and 403?
401 Unauthorized means the request isn't authenticated: no credentials, a bad password or an expired token. Logging in again can fix it, and the response must carry a WWW-Authenticate header. 403 Forbidden means the server knows who you are (or doesn't care) and still refuses. Logging in again won't help, because a permission, role or IP rule blocks the request.
Should I use 301 or 308 for a permanent redirect?
Both are permanent and both pass search ranking to the new URL. With a 301, browsers may turn a POST into a GET when they follow the redirect, so the body is lost. A 308 forbids that change. Use 301 for ordinary page moves and 308 for API endpoints or forms that receive POST, PUT or PATCH. The temporary pair works the same way: 302 may change the method, 307 never does.
400 or 422 for validation errors?
RFC 9110 defines 400 for requests the server can't parse (malformed JSON, bad framing) and 422 Unprocessable Content for a body that parses but contains invalid values. Many APIs use 400 for both. Either is acceptable if you document it, but 422 lets clients tell "fix your JSON" apart from "fix this field".
What do 499 and 520–527 mean? They aren't in the RFCs.
They are vendor codes. 499 is logged by nginx when the client closes the connection before the response is ready. 520–527 come from Cloudflare and describe problems between Cloudflare and your origin server, such as 521 (origin refused the connection), 522 (TCP timeout) and 524 (no HTTP response within 100 seconds). The tool marks these as unofficial (vendor).
What happens if a server sends a code that isn't registered, like 299?
RFC 9110, Section 15 says a client must treat an unrecognized status code like the x00 code of its class, so 299 is handled as 200 OK and 477 as 400 Bad Request. Search for such a code and the tool explains the fallback and shows the x00 entry.
Last updated