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.

CodeNameMeaning & what to do
100ContinueThe client should keep sending the body. Normal when uploading large payloads with Expect: 100-continue. Nothing to fix.
101Switching ProtocolsThe server agreed to change protocol — this is how WebSocket connections start. Expected during handshake.
200OKSuccess. Note: for mutations, prefer the more specific 201 (created) or 204 (no body) when designing APIs.
201CreatedA new resource exists. Well-designed APIs return a Location header pointing to it.
202AcceptedRequest queued, result not ready — typical for async jobs. Poll the provided status URL.
204No ContentSuccess with an empty body — common for DELETE and PUT. A client expecting JSON here will often crash parsing an empty string.
206Partial ContentRange request served — how video seeking and resumable downloads work. Appears when you send Range headers.
301Moved PermanentlyResource 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).
302FoundTemporary redirect. Despite the spec, most clients switch POST to GET here; if you need the method preserved use 307.
303See OtherFetch the result from another URI with GET — used after form POSTs to prevent double submission (POST-redirect-GET).
304Not ModifiedYour 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.
307Temporary RedirectLike 302 but the method and body must not change — POST stays POST.
308Permanent RedirectPermanent version of 307. Used when a path changed for good but the request must keep its method.
400Bad RequestThe server could not parse the request — malformed JSON, missing field, wrong types. Check the request body and Content-Type header first.
401UnauthorizedNot authenticated: missing, expired or invalid token — not a permissions problem (that is 403). Check the Authorization header and token expiry.
403ForbiddenAuthenticated 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.
404Not FoundNo resource at this path. For APIs check for typos, trailing slashes and method mismatches; for sites check the deployed file and your rewrite rules.
405Method Not AllowedThe path exists but not for this verb — POSTing to a GET-only endpoint. The Allow header lists what is accepted.
406Not AcceptableThe 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.
408Request TimeoutThe server gave up waiting for the client to finish sending. Retrying is usually safe; a persistent 408 hints at slow or flaky client connections.
409ConflictThe request clashes with current state — duplicate registration, stale version of an edited row. Fetch fresh state and reapply your change.
410GoneDeliberately removed and not coming back — stronger than 404. Search engines de-index it faster; use it for retired pages.
413Payload Too LargeThe 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.
414URI Too LongGET query exceeded the limit — typically a huge query parameter or a redirect loop appending parameters. Move data into the request body.
415Unsupported Media TypeThe body format is wrong for this endpoint — e.g. sending form-data where JSON is required. Set the correct Content-Type.
416Range Not SatisfiableThe requested byte range is outside the file — often a stale download resume pointing at a changed file.
418I'm a TeapotApril Fools' joke (RFC 2324). Some CDNs use it for bot blocking or as an easter egg.
422Unprocessable ContentRequest parsed fine but failed validation — missing required fields, out-of-range values. The response body usually lists the exact problems.
426Upgrade RequiredThe client must switch protocol (e.g. to TLS or WebSocket). Rare in day-to-day debugging.
428Precondition RequiredThe server demands conditional headers like If-Match to prevent lost updates in optimistic concurrency.
429Too Many RequestsRate limit hit. Read Retry-After and back off with exponential delay — hammering a 429 endpoint extends the ban. In scripts, add retry limits.
431Request Header Fields Too LargeHeaders exceed the limit — almost always an enormous Cookie header from thousands of accumulated cookies. Clear cookies for the domain.
451Unavailable For Legal ReasonsBlocked for legal demands — region restrictions or takedowns. Named after Fahrenheit 451.
500Internal Server ErrorUnhandled exception on the server. The client side cannot fix it — check server logs for a stack trace at the exact request timestamp.
501Not ImplementedThe server does not support the method or feature at all — usually a future capability or a misconfigured proxy.
502Bad GatewayAn 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.
503Service UnavailableTemporary overload, maintenance or deployment window. Often carries Retry-After. In Kubernetes, commonly means no ready endpoints behind the service.
504Gateway TimeoutThe 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.
505HTTP Version Not SupportedThe server rejects the HTTP version — rarely seen; can appear when forcing HTTP/2 or HTTP/3 on an unprepared intermediary.
507Insufficient StorageServer out of space to store the representation — check disk quota on WebDAV or storage backends.
511Network Authentication RequiredCaptive portal — you are on Wi-Fi that needs a login page first. Common in hotels and offices.

How to use

  • Type a number like 429 into the search box to jump to that code, or search keywords like redirect or timeout.
  • 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

  1. 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.
  2. Compare the request you sent with the request you intended: method, path, Content-Type, Authorization.
  3. If it is 5xx, move to the server logs; if it is 4xx, fix the request; if it is 3xx, follow the Location header 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.

Other tools