HTTP status codes
Look up any response code: what it means, why your request got it, and what usually fixes it. Type a number to jump straight to a code, or browse by class.
| Code | Name | Meaning & what to do |
|---|---|---|
| 100 | Continue | The client should keep sending the body. Normal when uploading large payloads with Expect: 100-continue. Nothing to fix. |
| 101 | Switching Protocols | The server agreed to change protocol — this is how WebSocket connections start. Expected during handshake. |
| 200 | OK | Success. Note: for mutations, prefer the more specific 201 (created) or 204 (no body) when designing APIs. |
| 201 | Created | A new resource exists. Well-designed APIs return a Location header pointing to it. |
| 202 | Accepted | Request queued, result not ready — typical for async jobs. Poll the provided status URL. |
| 204 | No Content | Success with an empty body — common for DELETE and PUT. A client expecting JSON here will often crash parsing an empty string. |
| 206 | Partial Content | Range request served — how video seeking and resumable downloads work. Appears when you send Range headers. |
| 301 | Moved Permanently | Resource has a new permanent home; search engines transfer ranking. Browsers cache it aggressively — a wrongly-set 301 can be hard to undo (use a private window to re-test). |
| 302 | Found | Temporary redirect. Despite the spec, most clients switch POST to GET here; if you need the method preserved use 307. |
| 303 | See Other | Fetch the result from another URI with GET — used after form POSTs to prevent double submission (POST-redirect-GET). |
| 304 | Not Modified | Your cached copy is still fresh — the cache wins, zero body transferred. Driven by ETag / If-None-Match. Sudden 304-only responses while debugging usually mean stale cache headers. |
| 307 | Temporary Redirect | Like 302 but the method and body must not change — POST stays POST. |
| 308 | Permanent Redirect | Permanent version of 307. Used when a path changed for good but the request must keep its method. |
| 400 | Bad Request | The server could not parse the request — malformed JSON, missing field, wrong types. Check the request body and Content-Type header first. |
| 401 | Unauthorized | Not authenticated: missing, expired or invalid token — not a permissions problem (that is 403). Check the Authorization header and token expiry. |
| 403 | Forbidden | Authenticated but not allowed — the account lacks permission, the IP is blocked, or a WAF rejected the payload. Retrying with the same credentials will not help. |
| 404 | Not Found | No resource at this path. For APIs check for typos, trailing slashes and method mismatches; for sites check the deployed file and your rewrite rules. |
| 405 | Method Not Allowed | The path exists but not for this verb — POSTing to a GET-only endpoint. The Allow header lists what is accepted. |
| 406 | Not Acceptable | The server cannot produce a format the client accepts. Usually a mismatch between your Accept header (e.g. application/xml) and what the API can return. |
| 408 | Request Timeout | The server gave up waiting for the client to finish sending. Retrying is usually safe; a persistent 408 hints at slow or flaky client connections. |
| 409 | Conflict | The request clashes with current state — duplicate registration, stale version of an edited row. Fetch fresh state and reapply your change. |
| 410 | Gone | Deliberately removed and not coming back — stronger than 404. Search engines de-index it faster; use it for retired pages. |
| 413 | Payload Too Large | The body exceeds a limit — often a proxy or server default (nginx client_max_body_size, or an API gateway cap). Compress or split the upload. |
| 414 | URI Too Long | GET query exceeded the limit — typically a huge query parameter or a redirect loop appending parameters. Move data into the request body. |
| 415 | Unsupported Media Type | The body format is wrong for this endpoint — e.g. sending form-data where JSON is required. Set the correct Content-Type. |
| 416 | Range Not Satisfiable | The requested byte range is outside the file — often a stale download resume pointing at a changed file. |
| 418 | I'm a Teapot | April Fools' joke (RFC 2324). Some CDNs use it for bot blocking or as an easter egg. |
| 422 | Unprocessable Content | Request parsed fine but failed validation — missing required fields, out-of-range values. The response body usually lists the exact problems. |
| 426 | Upgrade Required | The client must switch protocol (e.g. to TLS or WebSocket). Rare in day-to-day debugging. |
| 428 | Precondition Required | The server demands conditional headers like If-Match to prevent lost updates in optimistic concurrency. |
| 429 | Too Many Requests | Rate limit hit. Read Retry-After and back off with exponential delay — hammering a 429 endpoint extends the ban. In scripts, add retry limits. |
| 431 | Request Header Fields Too Large | Headers exceed the limit — almost always an enormous Cookie header from thousands of accumulated cookies. Clear cookies for the domain. |
| 451 | Unavailable For Legal Reasons | Blocked for legal demands — region restrictions or takedowns. Named after Fahrenheit 451. |
| 500 | Internal Server Error | Unhandled exception on the server. The client side cannot fix it — check server logs for a stack trace at the exact request timestamp. |
| 501 | Not Implemented | The server does not support the method or feature at all — usually a future capability or a misconfigured proxy. |
| 502 | Bad Gateway | An intermediary (reverse proxy, load balancer, CDN) got an invalid response from the upstream app. Typically the app process is crashed, restarting, or listening on the wrong port. |
| 503 | Service Unavailable | Temporary overload, maintenance or deployment window. Often carries Retry-After. In Kubernetes, commonly means no ready endpoints behind the service. |
| 504 | Gateway Timeout | The proxy waited too long for the upstream — slow database query, long job, or an app frozen without crashing. Raise the proxy timeout only after profiling why the upstream is slow. |
| 505 | HTTP Version Not Supported | The server rejects the HTTP version — rarely seen; can appear when forcing HTTP/2 or HTTP/3 on an unprepared intermediary. |
| 507 | Insufficient Storage | Server out of space to store the representation — check disk quota on WebDAV or storage backends. |
| 511 | Network Authentication Required | Captive portal — you are on Wi-Fi that needs a login page first. Common in hotels and offices. |
How to use
- Type a number like
429into the search box to jump to that code, or search keywords likeredirectortimeout. - Use the class filter to browse one family of codes at a time.
- Each row explains the common cause and what usually fixes it — not just the definition.
Reading the five classes
- 1xx — informational: conversation is still going. You rarely see these in normal tooling.
- 2xx — success: request landed. 200/201/204/206 each mean something slightly different.
- 3xx — redirection: the answer lives elsewhere. Watch for cached 301s and redirect loops (browsers report them as ERR_TOO_MANY_REDIRECTS).
- 4xx — client error: the request itself is the problem. Fix the request, headers, credentials or payload.
- 5xx — server error: the request was fine but the server (or its upstream) failed. Check logs, not the client.
The mistake people make most
Treating 401 and 403 as the same thing. 401 means "who are you?" — your token is missing, expired or invalid, so re-authenticate. 403 means "I know exactly who you are, and no." — re-authenticating changes nothing; you need different permissions or a different account. Mixing them up sends people down pointless re-login loops when the account simply lacks access.
Debugging an unexpected status in three steps
- Open the browser Network panel (or
curl -v) and read the actual status, headers and body — the body of a 4xx usually says exactly what failed. - Compare the request you sent with the request you intended: method, path, Content-Type, Authorization.
- If it is 5xx, move to the server logs; if it is 4xx, fix the request; if it is 3xx, follow the
Locationheader chain.
FAQ
Why do I get 200 OK but broken data?
Some APIs bury errors inside a 200 response with an error field in the JSON body. That is a design choice of the API (GraphQL works this way). Always validate the body, not just the status code.
Is 304 good or bad?
Good — it means caching is working. The browser keeps using its stored copy and saves a full download. You will only see it in the Network panel when "disable cache" is turned off.
Are status codes case-sensitive or localized?
The numeric code is the contract; the reason phrase ("Not Found") is a human hint that servers can localize or omit entirely. Never parse the text — always branch on the number.