HTTP Status Code Reference

A quick-search grid for HTTP status codes (1xx–5xx) with short descriptions — saves a trip to MDN when debugging a weird 422 or 409.

Showing all 61 status codes
code phrase description
100 Continue The server has received the request headers and the client should proceed to send the request body.
101 Switching Protocols The server agrees to switch to the protocol specified in the Upgrade request header (e.g. WebSocket).
102 Processing The server has accepted the request and is processing it, but has not yet completed — used to prevent timeouts on long operations.
103 Early Hints Allows the server to send response headers early so the client can start preloading resources before the final response is ready.
200 OK The request succeeded; the response body contains the requested resource or the result of the action.
201 Created The request succeeded and a new resource was created; the Location header typically points to the new resource URL.
202 Accepted The request has been accepted for processing, but processing has not completed — commonly used for async or queued operations.
203 Non-Authoritative Information The response is from a proxy or cache that modified the origin server's 200 response.
204 No Content The request succeeded but there is no response body to return — common for DELETE or PUT operations.
205 Reset Content Like 204, but instructs the client to reset the document view (e.g. clear a form after submission).
206 Partial Content The server is delivering only part of the resource, as requested by a Range header — used for resumable downloads and video streaming.
207 Multi-Status The response body contains multiple separate response codes for a batch operation, typically in WebDAV.
208 Already Reported The members of a DAV binding have already been enumerated in a previous reply and are not being included again.
226 IM Used The server fulfilled a GET request and the response is a representation of the result of one or more instance manipulations applied to the current instance.
300 Multiple Choices The request has more than one possible response; the client or user should choose one.
301 Moved Permanently The resource has been permanently moved to the URL in the Location header; clients should update their bookmarks.
302 Found The resource is temporarily at a different URI; the client should continue to use the original URL for future requests.
303 See Other The response to the request can be found at a different URI using GET — commonly used after a POST to redirect to a success page.
304 Not Modified The cached version of the resource is still valid; the client should use its cached copy instead of re-downloading.
307 Temporary Redirect Like 302, but the client must use the same HTTP method for the redirected request (method is not changed to GET).
308 Permanent Redirect Like 301, but the client must use the same HTTP method for all future requests to the new URL (method is preserved).
400 Bad Request The server cannot process the request because the client sent malformed syntax, invalid parameters, or a deceptive request.
401 Unauthorized Authentication is required and has not been provided or failed — despite the name, this means "unauthenticated".
402 Payment Required Reserved for future use; informally used by some APIs to indicate a subscription limit or paywall has been reached.
403 Forbidden The server understands the request but refuses to authorize it — the client is authenticated but lacks the required permissions.
404 Not Found The server cannot find the requested resource; the URL may be wrong or the resource may have been deleted.
405 Method Not Allowed The HTTP method used (e.g. DELETE) is not allowed for the target resource; the Allow header lists permitted methods.
406 Not Acceptable The server cannot produce a response matching the Accept headers sent by the client (content negotiation failed).
407 Proxy Authentication Required Like 401, but authentication must be performed with the proxy server before the request can proceed.
408 Request Timeout The server timed out waiting for the request; the client may resend the request without modifications.
409 Conflict The request conflicts with the current state of the resource, such as a version conflict or duplicate creation attempt.
410 Gone The resource previously existed but has been permanently deleted with no forwarding address — more definitive than 404.
411 Length Required The server requires a Content-Length header in the request, which the client did not provide.
412 Precondition Failed A conditional request header (e.g. If-Match, If-Unmodified-Since) evaluated to false, so the request was not applied.
413 Content Too Large The request body exceeds the server's configured maximum size limit.
414 URI Too Long The URI provided by the client is longer than the server is willing to process.
415 Unsupported Media Type The Content-Type of the request body is not in a format supported by the server for this endpoint.
416 Range Not Satisfiable The Range header in the request asks for a portion of the file that does not exist or is out of bounds.
417 Expectation Failed The Expect request header could not be satisfied by the server.
418 I'm a Teapot An April Fools' joke from RFC 2324; any attempt to brew coffee with a teapot should return this error.
421 Misdirected Request The request was directed at a server that is not able to produce a response for this combination of scheme and authority.
422 Unprocessable Content The request was well-formed but contains semantic errors — commonly returned by REST APIs when validation of the request body fails.
423 Locked The resource being accessed is locked (WebDAV); a LOCK request must be made before the resource can be modified.
424 Failed Dependency The request failed because it depended on another request that also failed (WebDAV).
425 Too Early The server is unwilling to risk processing a request that might be replayed, typically in TLS early data (0-RTT).
426 Upgrade Required The client should switch to a different protocol (specified in the Upgrade header) before making the request again.
428 Precondition Required The server requires the request to be conditional, typically to prevent lost-update problems with concurrent modifications.
429 Too Many Requests The client has sent too many requests in a given time window; the Retry-After header indicates when to try again.
431 Request Header Fields Too Large The server refuses to process the request because header fields are too large, individually or collectively.
451 Unavailable For Legal Reasons The server is denying access to the resource as a consequence of a legal demand (e.g. DMCA takedown, government-ordered censorship).
500 Internal Server Error The server encountered an unexpected condition that prevented it from fulfilling the request — the generic catch-all for server bugs.
501 Not Implemented The server does not support the HTTP method used in the request and cannot process it.
502 Bad Gateway The server, acting as a gateway or proxy, received an invalid response from an upstream server.
503 Service Unavailable The server is temporarily unable to handle the request due to overload or maintenance; Retry-After may indicate when to retry.
504 Gateway Timeout The server, acting as a gateway or proxy, did not receive a timely response from an upstream server.
505 HTTP Version Not Supported The server does not support the HTTP protocol version used in the request.
506 Variant Also Negotiates The server has an internal configuration error where the chosen variant is itself configured to engage in content negotiation.
507 Insufficient Storage The server cannot store the representation needed to complete the request (WebDAV).
508 Loop Detected The server detected an infinite loop while processing a request (WebDAV).
510 Not Extended Further extensions to the request are required for the server to fulfil it.
511 Network Authentication Required The client needs to authenticate to gain network access, typically returned by captive portals on public Wi-Fi.

FAQ

What are HTTP status codes?

HTTP status codes are three-digit numbers returned by a server to indicate the outcome of a client request. The first digit defines the class: 1xx (informational), 2xx (success), 3xx (redirection), 4xx (client error), and 5xx (server error).

What is the difference between 4xx and 5xx errors?

4xx errors indicate that the problem is on the client side — the request was bad, unauthorized, or targeted a resource that does not exist. 5xx errors mean the server encountered a problem while handling a valid request. If you see a 5xx error, the issue is with the server, not your request.

Are these all the HTTP status codes?

This reference covers all codes registered with the IANA HTTP Status Code Registry (RFC 9110 and related RFCs), plus well-known informal codes like 418 (I'm a Teapot) and 451 (Unavailable For Legal Reasons). Some proprietary APIs use non-standard codes outside this list.