What is HTTP Status Code Lookup?
HTTP Status Codes is a searchable reference of every status code you can meet when building and debugging websites and APIs. Every HTTP response starts with a three-digit status code that says how the request went: 1xx is informational, 2xx means success, 3xx means redirection, 4xx means a problem with the request, and 5xx means a problem on the server.
Type a number (404), the start of one (50 lists 500 to 508), a name (Forbidden) or a keyword (rate limit) to filter the list, or pick a class to see all of its codes. The reference covers all 62 codes defined in the HTTP RFCs, from 100 Continue to 511 Network Authentication Required, plus the unofficial codes you see in practice, such as nginx's 499 Client Closed Request and Cloudflare's 520 to 526 errors, which are labeled as unofficial.
How to use HTTP Status Code Lookup
- Type a status code, name or keyword in the search box; a partial number such as 4 or 50 lists every matching code.
- Or click a class, from 1xx Informational to 5xx Server error, to see all codes in it.
- Read the name and explanation for each code; unofficial codes are labeled with their source.
- Use the meaning to pick the right code for your API response, or to diagnose an error you received.
Key features
- Every standard HTTP status code from 1xx to 5xx
- Common unofficial nginx and Cloudflare codes, clearly labeled
- Filter by class: informational, success, redirection, client error, server error
- Search by number or number prefix, name or keyword
- Plain-English explanation for every code
Common use cases
- Choosing the right status code for a REST API response
- Diagnosing errors such as 403 Forbidden, 429 Too Many Requests or 502 Bad Gateway
- Reviewing redirects (301 versus 302) during a site migration
- Understanding 304 Not Modified when debugging browser caching
- Teaching HTTP basics to new developers
Technical details & standards
HTTP status codes are defined in RFC 9110 (HTTP Semantics), with additions such as 429 Too Many Requests and 431 Request Header Fields Too Large from RFC 6585, 308 Permanent Redirect from RFC 7538, 103 Early Hints from RFC 8297 and the WebDAV codes (102, 207, 208, 422, 423, 424, 507, 508). The first digit sets the class, and clients that do not recognize a specific code treat it like the x00 code of its class, so an unknown 4xx is handled like 400.
A few distinctions cause most confusion. 401 means the request is not authenticated, while 403 means the identity is known but not allowed. 301 and 308 are permanent redirects and 302 and 307 temporary ones; 307 and 308 also forbid changing a POST into a GET. 502 and 504 come from a proxy or gateway about the upstream server, while 500 and 503 come from the server itself. Codes such as 499 and 520 to 526 are not part of any standard but are logged by nginx and returned by Cloudflare.
Frequently asked questions
What is the difference between 401 and 403?
401 Unauthorized means the request lacks valid authentication; logging in or sending a valid token may fix it. 403 Forbidden means the server knows who you are but you are not allowed to access the resource, so authenticating again will not help.
Should I use 301 or 302 for a redirect?
Use 301 Moved Permanently when a URL has changed for good, such as after a site migration; search engines transfer ranking to the new URL. Use 302 Found for temporary redirects. If the request method must not change from POST to GET, use 308 or 307 instead.
What does a 502 Bad Gateway error mean?
A server acting as a gateway or proxy (such as Nginx, a load balancer or a CDN) got an invalid response from the upstream application server. The usual causes are a crashed or restarting app, a wrong upstream address, or a timeout between the proxy and the app.
Which status code should an API return for validation errors?
400 Bad Request for malformed requests (invalid JSON, missing parameters) and 422 Unprocessable Content when the request is well-formed but fails validation rules. Include a response body explaining which fields failed, for example as application/problem+json.
What are 499 and 520 errors?
They are not standard HTTP codes. nginx logs 499 when the client closed the connection before the response was ready, and Cloudflare returns 520 to 526 when it cannot get a valid response from your origin server, for example 522 when the connection times out.
What does HTTP status code 404 mean?
404 Not Found means the server has nothing at that URL, usually because of a mistyped address, a deleted page or a broken link. It is a client error, so retrying the same URL will not help; servers also use it to hide that a resource exists from clients that may not see it. Use 410 Gone instead when a page was removed on purpose.
Is my data safe?
Processing happens locally in your browser. Tool input is not sent to CodeUnpack servers.
Does it work offline?
Once the page has loaded, this tool can process input without an internet connection.