HTTP Status Codes
Every common HTTP response status code with its meaning, typical causes and how to fix it. Search by code or keyword.
48 status codes
1xx · InformationalRequest received, continuing
- 100ContinueRFC 9110
The server received the request headers and the client may send the body. Used with Expect: 100-continue so a large upload is not sent to a server that would reject it.
- 101Switching ProtocolsRFC 9110
The server agrees to switch protocols as requested in the Upgrade header, most commonly when a connection is upgraded to WebSocket.
- 103Early HintsRFC 8297
Sent before the final response with Link headers, so the browser can start preloading CSS and fonts while the server is still building the page.
2xx · SuccessThe request was received, understood and accepted
- 200OKRFC 9110Cacheable
The request succeeded. For GET the body contains the resource; for POST it describes the result of the action.
- 201CreatedRFC 9110
A new resource was created, typically after a POST or PUT. The Location header should point to the new resource.
- 202AcceptedRFC 9110
The request was accepted but processing is not finished, for example a queued background job. The body should say how to check its status.
- 204No ContentRFC 9110Cacheable
Success with no response body, common for DELETE and for PUT or PATCH requests that return nothing.
- 206Partial ContentRFC 9110Cacheable
Only part of the resource is returned because the client sent a Range header. Used to resume downloads and to seek in videos.
3xx · RedirectionFurther action is needed to complete the request
- 301Moved PermanentlyRFC 9110Cacheable
The resource has moved permanently to the URL in the Location header. Search engines pass ranking to the new URL and browsers cache the redirect. Clients may change POST to GET.
- 302FoundRFC 9110
The resource is temporarily at another URL; keep using the original one. Many clients change POST to GET when following it; use 307 if the method must be kept.
- 303See OtherRFC 9110
Tells the client to fetch another URL with GET, typically after a form submission (Post/Redirect/Get) so that refreshing does not submit the form again.
- 304Not ModifiedRFC 9110
The cached copy is still valid, so the server sends no body. The answer to conditional requests with If-None-Match (ETag) or If-Modified-Since.
- 307Temporary RedirectRFC 9110
Like 302, but the client must repeat the request with the same method and body.
- 308Permanent RedirectRFC 9110Cacheable
Like 301, but the method and body must not change. The safe choice for permanently moving an API endpoint that receives POST requests.
4xx · Client errorThe request contains an error or cannot be fulfilled
- 400Bad RequestRFC 9110
The server cannot process a malformed request: invalid JSON, a missing required field, a bad query parameter or a broken header.
- 401UnauthorizedRFC 9110
Authentication is missing or invalid. Despite the name it means unauthenticated, and the response should include a WWW-Authenticate header. Log in again or refresh the token.
- 402Payment RequiredRFC 9110
Reserved for future use by the HTTP standard, but some APIs and SaaS products return it when a subscription or payment is required.
- 403ForbiddenRFC 9110
The server knows who you are but refuses access, so logging in again will not help. Check user permissions, IP allowlists, file permissions or firewall (WAF) rules.
- 404Not FoundRFC 9110Cacheable
Nothing exists at this URL. Check for typos, deleted pages or a missing route. For a page that is gone for good, 410 is more explicit.
- 405Method Not AllowedRFC 9110Cacheable
The URL exists but does not accept this HTTP method, for example POST to a read-only endpoint. The Allow header lists the supported methods.
- 406Not AcceptableRFC 9110
The server cannot produce a response matching the client's Accept headers, such as Accept: application/xml on a JSON-only API.
- 408Request TimeoutRFC 9110
The client took too long to send the complete request, so the server closed the connection. Often caused by slow networks or idle keep-alive connections.
- 409ConflictRFC 9110
The request conflicts with the current state of the resource, for example creating a user that already exists or saving an edit based on an outdated version.
- 410GoneRFC 9110Cacheable
The resource was removed on purpose and will not come back. Search engines drop 410 pages faster than 404 pages.
- 411Length RequiredRFC 9110
The server requires a Content-Length header and the request did not include one.
- 412Precondition FailedRFC 9110
A condition in If-Match or If-Unmodified-Since was false, usually because someone else changed the resource first. Used for optimistic locking.
- 413Content Too LargeRFC 9110
The request body is larger than the server allows, a common upload error. In nginx raise client_max_body_size, and check proxy and CDN limits too.
- 414URI Too LongRFC 9110Cacheable
The URL is longer than the server accepts, usually because too much data was put in the query string. Send it in a POST body instead.
- 415Unsupported Media TypeRFC 9110
The server does not accept the format of the body. Make sure the Content-Type header matches the data, e.g. application/json for JSON.
- 416Range Not SatisfiableRFC 9110
The Range header asks for bytes outside the file, often when resuming a download after the file has changed.
- 418I'm a teapotRFC 2324
An April Fools' joke from the Hyper Text Coffee Pot Control Protocol. Some sites return it to turn away bots; it has no real meaning in HTTP.
- 422Unprocessable ContentRFC 9110
The syntax is valid but the content fails validation, such as an invalid email address. Common in REST APIs and frameworks such as Rails and FastAPI.
- 425Too EarlyRFC 8470
The server refuses to process a request sent as TLS 1.3 early data (0-RTT), because it could be replayed by an attacker.
- 429Too Many RequestsRFC 6585
Rate limit exceeded: too many requests in a given time. Wait the number of seconds in Retry-After and retry with exponential backoff.
- 431Request Header Fields Too LargeRFC 6585
The request headers are too large, very often because of oversized or piled-up cookies. Clearing the site's cookies usually fixes it.
- 451Unavailable For Legal ReasonsRFC 7725
Access is blocked for legal reasons, such as a court order or government censorship. The number is a nod to the novel Fahrenheit 451.
- 499Client Closed RequestUnofficial · nginx
Logged by nginx when the client closed the connection before the response was ready. It is never sent to the client; it usually means the backend was too slow or the user gave up.
5xx · Server errorThe server failed to fulfil a valid request
- 500Internal Server ErrorRFC 9110
A generic server-side failure, such as an unhandled exception or a configuration error. The cause is in the server logs, not in the request.
- 501Not ImplementedRFC 9110Cacheable
The server does not support the functionality needed to fulfil the request, such as an unknown HTTP method.
- 502Bad GatewayRFC 9110
A gateway or proxy (nginx, a load balancer, a CDN) received an invalid response from the upstream server, usually because the application crashed, is restarting or is not listening on the expected port.
- 503Service UnavailableRFC 9110
The server is temporarily unable to handle the request because it is overloaded or down for maintenance. A Retry-After header can say when to try again.
- 504Gateway TimeoutRFC 9110
A gateway or proxy did not get a response from the upstream server in time. Look for slow database queries or long-running tasks, or raise the proxy timeout.
- 505HTTP Version Not SupportedRFC 9110
The server does not support the HTTP version used in the request.
- 511Network Authentication RequiredRFC 6585
The client must log in to get network access, typically the Wi-Fi captive portal of a hotel or airport.
- 520Web Server Returned an Unknown ErrorUnofficial · Cloudflare
Cloudflare received an empty, unknown or unexpected response from the origin server, for example from a crashed process or with headers that are too large.
- 521Web Server Is DownUnofficial · Cloudflare
The origin server refused Cloudflare's connection: the web server is down, or a firewall blocks Cloudflare's IP ranges.
- 522Connection Timed OutUnofficial · Cloudflare
Cloudflare could not open a TCP connection to the origin in time. The server is overloaded or unreachable, or DNS points to the wrong IP.
- 524A Timeout OccurredUnofficial · Cloudflare
Cloudflare connected to the origin but got no HTTP response within 100 seconds. Move long-running work to a background job.
About this tool
Every HTTP response starts with a three-digit status code that tells the client what happened: 200 means success, 301 means the page moved, 404 means nothing is there and 502 means a proxy could not reach the application behind it. The first digit gives the class, so even an unfamiliar code tells you whether to look at the request (4xx) or at the server (5xx).
This reference lists the codes you actually meet in web development and operations, including the ones that are not in the standard but show up in logs every day: nginx 499 and the Cloudflare 52x errors. Each entry explains the typical cause and the first thing to check. Search by number, by class such as 5xx, or by a word from the description.
How to use HTTP Status Codes
- Type a code (404), a class (4xx) or a keyword (timeout, cookie) into the search box.
- Or use the class switch to show only informational, success, redirect, client error or server error codes.
- Read the explanation and the badges: the defining RFC, whether caches store the response by default, and whether the code is unofficial.
- Copy the code and reason phrase, or link to a single code with #status-404 at the end of the page URL.
Examples
Find all redirects
3xx
301, 302, 303, 304, 307, 308
304 is listed with redirects but is really a cache answer: the client already has the file.
Search by symptom
cookie
431 Request Header Fields Too Large
A code that is not registered
299
Treated like 200 OK (Success)
RFC 9110 requires clients to handle an unknown code like the x00 code of its class.
Which redirect should I use?
- 301 Moved Permanently: a page has a new URL for good, such as after a domain or URL structure change. Search engines move the ranking to the new address.
- 302 Found: a temporary detour, such as a maintenance page or a geo-based redirect. The old URL stays indexed.
- 307 and 308 are the strict versions of 302 and 301: the browser must resend the same method and body, so a POST stays a POST. Use them for APIs.
- 303 See Other: after a form POST, send the user to a result page with GET so that refreshing does not submit twice.
502, 503 or 504: reading gateway errors
When a site sits behind nginx, a load balancer or a CDN, the server-error code tells you where the chain broke. 502 means the proxy reached the application but got garbage or a closed connection back, which usually means the app crashed or is listening on another port. 504 means the application accepted the connection but did not answer in time, so look for slow queries or raise the proxy timeout. 503 is normally sent on purpose, by the application or the proxy, when it is overloaded or in maintenance.
Cloudflare adds its own codes for the same situations at its edge: 521 (origin refused the connection), 522 (TCP connection timed out) and 524 (connected, but no response within 100 seconds).
Frequently asked questions
Everything you need to know about this tool and data security.
What is the difference between 401 and 403?
401 means the server does not know who you are: credentials are missing, expired or wrong, and logging in may fix it. 403 means the server knows who you are and still says no, so you need different permissions, not a new login.
Should a deleted page return 404 or 410?
Both work. 410 Gone states that the removal is intentional and permanent, and search engines tend to drop such URLs a little faster. Use 404 when you are not sure whether the page might come back.
Is it OK to return 200 with an error message in the body?
It is a common anti-pattern. Monitoring, caches, retries and search engines all rely on the status code, so a "soft error" served as 200 looks like success to them. Search engines even report it as a soft 404.
What does nginx 499 mean?
The client closed the connection before nginx could send a response. The browser never sees 499; it only appears in the access log. Frequent 499s usually mean an upstream that is too slow, or a client or load balancer timeout that is shorter than the server one.
Which status codes are cached by default?
RFC 9110 allows caches to store 200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414 and 501 without explicit freshness information, using a heuristic lifetime. Send Cache-Control headers to control it precisely; the tool marks these codes as Cacheable.
Is my data safe when using this tool?
Yes, 100% safe. This tool operates entirely inside your web browser using client-side JavaScript and WebAssembly. Your data never touches any external server.
Related Tools
Convert a curl command into JavaScript fetch() code, with headers, JSON bodies, form data and basic auth handled.
Find the MIME type (Content-Type) for a file extension, or the extensions for a MIME type, with ready-to-copy server config.
Percent-encode or decode URLs and query strings, and inspect every part of a URL.
Featured Projects tech-fun.net
Explore more AI & productivity tools
Nihongo GameBox
Master Japanese typing, Kana, and JLPT N5–N1 vocabulary through interactive retro arcade games.
ResumeGPT
Tailors CVs and cover letters to every job opportunity with a multi-agent LLM pipeline, job tracking, and scheduled discovery.
CollectMind
Turns your bookmarks into a searchable AI knowledge base — entirely on-device, powered by Chrome's built-in Gemini Nano.