Resell services with the EthicalSMM API

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

ClassMeaningExamples in the table
1xx InformationalInterim response, the real answer follows100, 101, 103
2xx SuccessThe request worked200, 201, 202, 204, 206
3xx RedirectionGo somewhere else, or use your cached copy301, 302, 303, 304, 307, 308
4xx Client errorThe request itself has a problem400, 401, 403, 404, 429 and more
5xx Server errorThe server or something behind it failed500, 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?
404 Not Found means the server has nothing at that URL. The link may be mistyped, or the page was deleted or moved without a redirect.
What is the difference between 301 and 302 redirects?
A 301 says the page has moved permanently, so search engines should index the new URL. A 302 is temporary and tells clients to keep using the original URL in future.
What does 429 Too Many Requests mean?
You have hit a rate limit. Wait before trying again, and if the response has a Retry-After header, it tells you how long.
Why do I get a 502 Bad Gateway error?
A proxy, load balancer or CDN got an invalid response from the server behind it. On a typical PHP site this often means PHP-FPM or the application crashed or is not running.
Is 499 a real HTTP status code?
499 is not a registered code, so this tool treats it like 400 as RFC 9110 advises. Nginx writes 499 in its logs when the client closed the connection before the response was sent.
What is the difference between 401 and 403?
401 means you are not authenticated, so logging in or sending a valid token may fix it. 403 means you are identified but not allowed, so the same credentials will keep failing.

Related guides

Related tools

People also used

Embed this tool on your site

Paste it into any blog or website. Free, with a credit link.