HTTP status codes
Every HTTP status code in plain words, searchable by number, class (4xx) or a word like redirect or cache.
1xx · Informational
- 100ContinueThe server has the request headers; the client may go on and send the body.
- 101Switching ProtocolsThe server agrees to switch protocol, for example to WebSocket.
- 102ProcessingThe server is still working on a long request and has no answer yet. (WebDAV)
- 103Early HintsEarly hints: the browser can start loading resources while the real answer is prepared.
2xx · Success
- 200OKThe request worked and the answer carries the result.
- 201CreatedSomething new was created; the Location header usually points to it.
- 202AcceptedAccepted for processing, but not finished yet.
- 203Non-Authoritative InformationThe answer is fine, but a proxy changed it on the way.
- 204No ContentSuccess with nothing to send back. Common after a save or a delete.
- 205Reset ContentSuccess; the client should clear the form or view that sent the request.
- 206Partial ContentOnly the requested part is sent (Range requests: resumable downloads, video seeking).
- 207Multi-StatusSeveral results in one answer, one per resource. (WebDAV)
- 208Already ReportedThe members of this collection were already listed earlier in the answer. (WebDAV)
- 226IM UsedThe answer is a delta against a version the client already has. Rare.
3xx · Redirection
- 300Multiple ChoicesSeveral possible answers; the client or the user has to choose one.
- 301Moved PermanentlyPermanent redirect: the address has moved for good. Use the new one; clients may switch the method to GET.
- 302FoundTemporary redirect: keep using the original address. Clients may switch the method to GET.
- 303See OtherRedirect to look at another address with GET, typically after a POST.
- 304Not ModifiedNot modified: use your cached copy.
- 307Temporary RedirectTemporary redirect: repeat the same request, same method and body, at the new address.
- 308Permanent RedirectPermanent redirect: same method and body at the new address.
4xx · Client error
- 400Bad RequestThe server cannot make sense of the request: bad syntax, bad framing or invalid data.
- 401UnauthorizedNot authenticated: the login is missing or wrong. Send valid credentials.
- 402Payment RequiredReserved for payment schemes. Rarely used; some APIs answer with it when a billing limit is hit.
- 403ForbiddenUnderstood, but not allowed. Logging in again will not help.
- 404Not FoundNothing found at this address (or the server hides that it exists).
- 405Method Not AllowedThis method is not allowed here; the Allow header lists the ones that are.
- 406Not AcceptableThe server cannot produce an answer in a format the Accept headers ask for.
- 407Proxy Authentication RequiredLike 401, but the proxy is the one asking for a login.
- 408Request TimeoutThe server gave up waiting for the request to arrive.
- 409ConflictThe request clashes with the current state, for example an edit conflict or a duplicate.
- 410GoneGone for good, with no forwarding address. Stronger than 404.
- 411Length RequiredThe server needs a Content-Length header.
- 412Precondition FailedA condition in the request headers (such as If-Match) was not true.
- 413Content Too LargeThe request body is larger than the server accepts.
- 414URI Too LongThe address is longer than the server accepts.
- 415Unsupported Media TypeThe server does not accept this Content-Type.
- 416Range Not SatisfiableThe requested byte range lies outside the file.
- 417Expectation FailedThe server cannot meet what the Expect header asks for.
- 418I'm a teapotAn April Fools joke from RFC 2324 that stayed; some servers use it to turn bots away.
- 421Misdirected RequestThe request went to a server that cannot answer for this host name.
- 422Unprocessable ContentThe syntax is fine but the content cannot be processed, typically a failed validation.
- 423LockedThe resource is locked. (WebDAV)
- 424Failed DependencyThe request depends on another one that failed. (WebDAV)
- 425Too EarlyThe server will not risk handling a request that could be replayed (TLS early data).
- 426Upgrade RequiredSwitch to another protocol first; the Upgrade header says which.
- 428Precondition RequiredThe server insists on a conditional request, to avoid lost updates.
- 429Too Many RequestsToo many requests in a given time. Slow down; Retry-After may say for how long.
- 431Request Header Fields Too LargeThe request headers, or one of them, are too large.
- 451Unavailable For Legal ReasonsBlocked for legal reasons. The number is a nod to Fahrenheit 451.
5xx · Server error
- 500Internal Server ErrorGeneric server failure: something broke and no better code fits.
- 501Not ImplementedThe server does not support the method or feature that was asked for.
- 502Bad GatewayA gateway or proxy got an invalid answer from the server behind it.
- 503Service UnavailableThe server is down or overloaded, usually temporarily; Retry-After may say when to come back.
- 504Gateway TimeoutA gateway or proxy waited too long for the server behind it.
- 505HTTP Version Not SupportedThe HTTP version of the request is not supported.
- 506Variant Also NegotiatesA configuration error in content negotiation: the chosen variant itself negotiates.
- 507Insufficient StorageThe server has no room left to store what the request needs. (WebDAV)
- 508Loop DetectedThe server found an endless loop while processing the request. (WebDAV)
- 510Not ExtendedFurther extensions are needed to fulfil the request. Rarely used.
- 511Network Authentication RequiredThe network wants a login first, as a hotspot does (captive portal).