HTTP Status Code Lookup
Look up what an HTTP status code means, or search by word, from 200 and 301 to 404, 429, 502 and Cloudflare's 52x errors.
Was this tool helpful?
Thanks for the feedback!
This lookup explains what an HTTP status code means in plain words, from everyday ones like 200, 301 and 404 to 429 rate limits and Cloudflare's 52x errors. Type one code, several codes, a whole class such as 5xx, or a word like "timeout". It is for developers reading server logs, site owners puzzled by an error page, and SEO people checking redirects.
How to search
Use the box labelled Status code(s) or a word and press Look up. The tool understands these inputs:
- One or more three-digit codes from 100 to 599, anywhere in the text. "301 302 307 308" shows all four, and "error 404 on /pricing" picks out 404.
- A class written as 1xx to 5xx. "4xx" lists the 25 client-error codes in the table, and "3xx" lists 6.
- A word or phrase, matched against each code's name and description. "redirect" returns 301, 302, 307 and 308. "cloudflare" returns 520, 521, 522 and 524.
- Nothing at all, which lists every code in the table: 52 of them.
If you type a code in range that is not in the table, such as 499, you still get an answer: "Not a registered code; treat it like 400." That follows the rule in RFC 9110 that a client which does not recognise a status code should treat it as the x00 code of its class. A number outside 100 to 599, or a pattern like "52x", returns "No status code matches…" with a hint to try a number or a word.
The five classes
| Class | Meaning | Examples in the table |
|---|---|---|
| 1xx Informational | Interim response, the real answer follows | 100, 101, 103 |
| 2xx Success | The request worked | 200, 201, 202, 204, 206 |
| 3xx Redirection | Go somewhere else, or use your cached copy | 301, 302, 303, 304, 307, 308 |
| 4xx Client error | The request itself has a problem | 400, 401, 403, 404, 429 and more |
| 5xx Server error | The server or something behind it failed | 500, 502, 503, 504 and more |
Most codes are defined in RFC 9110, HTTP Semantics. A few come from other RFCs: 428, 429, 431 and 511 from RFC 6585, 451 from RFC 7725, 103 Early Hints from RFC 8297, and 425 Too Early from RFC 8470.
Codes that are often confused
301, 302, 307 and 308
301 and 308 are permanent, 302 and 307 are temporary. The difference within each pair is the method: with 301 and 302, browsers may change a POST into a GET when they follow the redirect, while 307 and 308 must repeat the same method and body. For moving a page to a new URL for good, 301 is the usual choice. The 301 Redirect Generator writes the server rules for you.
401 and 403
401 Unauthorized really means "not authenticated": log in or send a valid token. 403 Forbidden means the server knows who you are and still refuses. Sending the same credentials again will not help; you need an account with permission.
502, 503 and 504
All three usually involve a proxy, load balancer or CDN in front of your app. 502 means it got a bad answer from the server behind it, often a crashed app or PHP-FPM process. 503 means the service is overloaded or down for maintenance. 504 means the proxy gave up waiting.
Worked example and non-standard codes
Searching "timeout" returns three codes: 408 Request Timeout (the client was too slow to send its request), 504 Gateway Timeout (a proxy waited too long for the server behind it) and 524 A Timeout Occurred (Cloudflare's version of the same problem). Cloudflare's 522 Connection Timed Out does not appear, because its name says "timed out" rather than "timeout". Search "cloudflare" to see all four of its codes together.
Some codes in the table are clearly marked as not standard. 418 I'm a teapot comes from RFC 2324, an April Fools joke, and RFC 9110 lists it as unused. 419 Page Expired is Laravel's response to an expired CSRF token. Cloudflare's 520, 521, 522 and 524 are its own codes for problems reaching your origin server. To see which browser or bot made a request that ended in one of these errors, paste the user-agent from your log into the User Agent Parser.
Frequently asked questions
What does HTTP status 404 mean?
What is the difference between 301 and 302 redirects?
What does 429 Too Many Requests mean?
Why do I get a 502 Bad Gateway error?
Is 499 a real HTTP status code?
What is the difference between 401 and 403?
Related guides
- HTTP Status Codes for SEO: 301 vs 302, 404 vs 410, Soft 404s and 503 Use 301 or 308 for permanent moves, 302 or 307 for temporary ones, 404 or 410 for deleted pages and 503 for maintenance. Here is how Google treats eac...
- Free Developer Tools That Replace a Dozen Browser Tabs Free developer tools grouped by job: format, convert, encode, generate and test. What each one does, which run on the server, and the limits to know f...
- How to Beautify CSS, HTML and XML (Online, VS Code, Prettier) Beautifying adds line breaks and indentation so minified CSS, HTML or XML is readable again. How the free formatters work, their limits, and VS Code a...