HTTP status codes

HTTP status codes are three-digit numbers a server returns with every response: 2xx success, 3xx redirect, 4xx client error, 5xx server error. Search or browse the full list below.

1xx Informational

The request was received and the process continues.

CodeNameMeaning
100ContinueThe server has received the request headers and the client may go ahead and send the body..
101Switching ProtocolsThe server agrees to switch to the protocol named in the client's Upgrade header..
102ProcessingA WebDAV server has accepted a long request and is still working on it, so the client should not time out..
103Early HintsThe server sends preliminary headers, usually Link: rel=preload, before the final response is ready..

2xx Success

The request was received, understood and accepted.

CodeNameMeaning
200OKThe request succeeded.
201CreatedThe request succeeded and a new resource was created, usually at the URL in the Location header..
202AcceptedThe request was accepted for processing, but the work has not finished yet..
203Non-Authoritative InformationThe response is a success, but a proxy has modified the payload from the origin's 200 response..
204No ContentThe request succeeded and there is intentionally no body to return..
205Reset ContentThe request succeeded and the client should reset the document view, for example clear a form..
206Partial ContentThe server is returning only the byte range the client asked for with a Range header..
207Multi-StatusA WebDAV response carrying several separate status codes in an XML body, one per resource..
208Already ReportedUsed inside a WebDAV 207 body to avoid listing the same binding members again..
226IM UsedThe server fulfilled a GET and the response is the result of instance manipulations (delta encoding)..

3xx Redirection

Further action is needed, usually following another URL.

CodeNameMeaning
300Multiple ChoicesThe resource has several representations and the client or user should pick one..
301Moved PermanentlyThe resource has a new permanent URL, given in Location.
302FoundThe resource is temporarily at another URL.
303See OtherThe server redirects the client to another URL that must be fetched with GET, typically after a POST..
304Not ModifiedThe cached copy the client already has is still valid, so no body is sent..
305Use ProxyDeprecated.
307Temporary RedirectLike 302, but the client must repeat the request with the same method and body at the new URL..
308Permanent RedirectLike 301, but the method and body must not change when following the redirect..

4xx Client error

The request has a problem the client must fix.

CodeNameMeaning
400Bad RequestThe server cannot process the request because it is malformed or invalid..
401UnauthorizedThe request lacks valid authentication credentials.
402Payment RequiredReserved for future use, but some APIs use it when a plan limit or payment is needed..
403ForbiddenThe server understood who you are (or does not care) and refuses to allow the request..
404Not FoundThe server cannot find anything at the requested URL..
405Method Not AllowedThe URL exists but does not support the HTTP method used..
406Not AcceptableThe server cannot produce a response matching the client's Accept headers..
407Proxy Authentication RequiredLike 401, but the client must authenticate with a proxy in between..
408Request TimeoutThe server gave up waiting for the client to finish sending the request..
409ConflictThe request conflicts with the current state of the resource..
410GoneThe resource was intentionally removed and will not come back..
411Length RequiredThe server refuses the request because it has no Content-Length header..
412Precondition FailedA condition in the request headers, such as If-Match, evaluated to false..
413Content Too LargeThe request body is larger than the server is willing to accept (formerly "Payload Too Large")..
414URI Too LongThe URL is longer than the server will interpret..
415Unsupported Media TypeThe server does not accept the format of the request body..
416Range Not SatisfiableThe byte range in the Range header lies outside the resource..
417Expectation FailedThe server cannot meet the Expect header requirement..
418I'm a teapotAn April Fools' joke from the Hyper Text Coffee Pot Control Protocol.
421Misdirected RequestThe request reached a server that cannot answer for that host, often due to connection reuse..
422Unprocessable ContentThe body is well-formed but its content fails validation..
423LockedThe WebDAV resource is locked..
424Failed DependencyThe request failed because a previous request it depended on failed..
425Too EarlyThe server will not process a request sent in TLS early data because it might be replayed..
426Upgrade RequiredThe server refuses the request on the current protocol and requires an upgrade..
428Precondition RequiredThe server requires the request to be conditional to prevent lost updates..
429Too Many RequestsThe client sent too many requests in a given time (rate limiting)..
431Request Header Fields Too LargeThe headers are too big, either one header or all together..
451Unavailable For Legal ReasonsAccess is denied because of a legal demand, such as a court order or government block..

5xx Server error

The server failed to fulfil a valid request.

CodeNameMeaning
500Internal Server ErrorSomething went wrong on the server and it has no more specific code to give..
501Not ImplementedThe server does not support the functionality needed, such as an unknown method..
502Bad GatewayA proxy or gateway got an invalid response from the upstream server..
503Service UnavailableThe server is temporarily unable to handle the request..
504Gateway TimeoutA proxy or gateway did not get a response from upstream in time..
505HTTP Version Not SupportedThe server does not support the HTTP version in the request..
506Variant Also NegotiatesA content-negotiation configuration error made a variant negotiate with itself..
507Insufficient StorageThe WebDAV server cannot store the representation needed to complete the request..
508Loop DetectedThe WebDAV server found an infinite loop while processing the request..
510Not ExtendedFurther extensions to the request are required (obsolete)..
511Network Authentication RequiredThe client must authenticate to gain network access, typically on a captive portal..

Frequently asked questions

What are the most common HTTP status codes?
200 OK, 301 and 302 redirects, 304 Not Modified, 404 Not Found, 403 Forbidden, 500 Internal Server Error, 502 Bad Gateway and 503 Service Unavailable.
Who defines HTTP status codes?
The IETF. The core codes are in RFC 9110 (2022); others come from extension RFCs and are listed in the IANA HTTP Status Code Registry.