HTTP Status Codes Reference

Every HTTP response code, what it means and when to use it.

100 Continue
Informational
The server received the request headers and the client should send the body.
101 Switching Protocols
Informational
The server is switching protocols as requested, for example to WebSocket.
102 Processing
Informational
WebDAV: the server is working on the request but has no response yet.
103 Early Hints
Informational
Lets the browser start preloading resources (Link headers) before the final response.
200 OK
Success
The request succeeded. The body contains the result.
201 Created
Success
A new resource was created, usually after POST or PUT. The Location header points to it.
202 Accepted
Success
The request was accepted for processing, but processing has not finished (async jobs).
203 Non-Authoritative Information
Success
The response was modified by a transforming proxy.
204 No Content
Success
The request succeeded and there is no body to return, common for DELETE.
205 Reset Content
Success
The client should reset the document view, for example clear a form.
206 Partial Content
Success
Only part of the resource is returned, in answer to a Range request (resumable downloads, video).
207 Multi-Status
Success
WebDAV: the body contains status codes for several operations.
208 Already Reported
Success
WebDAV: members of a binding were already listed earlier in the response.
226 IM Used
Success
The response is the result of instance manipulations applied to the resource.
300 Multiple Choices
Redirection
There are several possible responses and the client should choose one.
301 Moved Permanently
Redirection
The resource has a new permanent URL. Search engines transfer ranking signals to the new URL.
302 Found
Redirection
Temporary redirect. Browsers may change POST to GET when following it.
303 See Other
Redirection
Redirect to another URL with GET, typically after a form POST.
304 Not Modified
Redirection
The cached copy is still valid, so no body is sent (conditional GET with ETag or If-Modified-Since).
307 Temporary Redirect
Redirection
Temporary redirect that keeps the original method and body.
308 Permanent Redirect
Redirection
Permanent redirect that keeps the original method and body.
400 Bad Request
Client error
The server cannot process the request because it is malformed, such as invalid JSON or missing fields.
401 Unauthorized
Client error
Authentication is required or failed. Send valid credentials (despite the name, it means unauthenticated).
402 Payment Required
Client error
Reserved for future use. Some APIs use it when a payment or plan upgrade is needed.
403 Forbidden
Client error
The server understood who you are but refuses access to this resource.
404 Not Found
Client error
No resource exists at this URL.
405 Method Not Allowed
Client error
The HTTP method (GET, POST…) is not supported for this URL. The Allow header lists valid methods.
406 Not Acceptable
Client error
The server cannot produce a response matching the Accept headers.
407 Proxy Authentication Required
Client error
The client must authenticate with the proxy first.
408 Request Timeout
Client error
The server timed out waiting for the client to finish sending the request.
409 Conflict
Client error
The request conflicts with the current state, such as a duplicate record or an edit conflict.
410 Gone
Client error
The resource was deliberately removed and will not come back. Search engines drop it faster than a 404.
411 Length Required
Client error
The request must include a Content-Length header.
412 Precondition Failed
Client error
A condition in the request headers (such as If-Match) was not met.
413 Content Too Large
Client error
The request body is larger than the server allows (formerly Payload Too Large).
414 URI Too Long
Client error
The URL is longer than the server will process.
415 Unsupported Media Type
Client error
The server does not accept the request body format given in Content-Type.
416 Range Not Satisfiable
Client error
The requested byte range is outside the size of the resource.
417 Expectation Failed
Client error
The server cannot meet the Expect request header.
418 I'm a teapot
Client error
An April Fools joke from RFC 2324. Some servers use it to reject bots.
421 Misdirected Request
Client error
The request reached a server that cannot respond for this host.
422 Unprocessable Content
Client error
The syntax is valid but the content fails validation, for example an invalid email address.
423 Locked
Client error
WebDAV: the resource is locked.
424 Failed Dependency
Client error
WebDAV: the request failed because an earlier request failed.
425 Too Early
Client error
The server will not process a request that might be replayed (TLS early data).
426 Upgrade Required
Client error
The client must switch to another protocol, given in the Upgrade header.
428 Precondition Required
Client error
The server requires a conditional request to prevent lost updates.
429 Too Many Requests
Client error
Rate limit exceeded. Retry-After says when to try again.
431 Request Header Fields Too Large
Client error
The request headers (often cookies) are too large.
451 Unavailable For Legal Reasons
Client error
Access is blocked for legal reasons, such as a court order.
500 Internal Server Error
Server error
A generic error: something unexpected failed on the server. Check the server logs.
501 Not Implemented
Server error
The server does not support the functionality required for this request.
502 Bad Gateway
Server error
A gateway or proxy got an invalid response from the upstream server.
503 Service Unavailable
Server error
The server is overloaded or down for maintenance. Retry-After may say when to retry.
504 Gateway Timeout
Server error
A gateway or proxy did not get a response from the upstream server in time.
505 HTTP Version Not Supported
Server error
The server does not support the HTTP version used in the request.
506 Variant Also Negotiates
Server error
Server configuration error in content negotiation.
507 Insufficient Storage
Server error
WebDAV: the server cannot store what is needed to complete the request.
508 Loop Detected
Server error
WebDAV: the server detected an infinite loop.
510 Not Extended
Server error
Further extensions to the request are required.
511 Network Authentication Required
Server error
The client must sign in to the network, such as a hotel or airport Wi-Fi portal.

🔒 Runs entirely in your browser. Nothing you enter is uploaded or stored.

What is the HTTP Status Codes?

Every HTTP response starts with a three-digit status code that tells the client what happened. The first digit gives the class: 1xx informational, 2xx success, 3xx redirection, 4xx client error (the request was wrong) and 5xx server error (the server failed). The codes are defined in RFC 9110 and related standards.

Choosing the right code matters for APIs and for SEO. Search engines treat a 301 or 308 as a permanent move and pass ranking signals to the new URL, while 302 and 307 are temporary. A 404 or 410 removes a page from the index, and repeated 5xx errors make crawlers slow down. Use the search box to find a code by number or keyword.

How to use the HTTP Status Codes

  1. Type a code (such as 429) or a word (such as redirect or auth) in the search box.
  2. Read the meaning and typical use of each matching code.
  3. Link directly to a code with #code-404 at the end of this page's URL.

401 vs 403, 301 vs 302: quick guide

SituationUse
Not logged in, or the token is invalid401 Unauthorized
Logged in, but not allowed403 Forbidden
Page moved forever301 (or 308 to keep POST)
Temporary redirect302 (or 307 to keep POST)
Validation error in a request body422 or 400
Rate limit hit429 with Retry-After
Down for maintenance503 with Retry-After

Frequently asked questions

What is the difference between 401 and 403?

401 means the server doesn't know who you are: credentials are missing or invalid. 403 means it knows who you are, but you are not allowed to access the resource.

Which redirect is best for SEO?

For permanent moves use 301 (or 308). Google passes ranking signals through permanent redirects and shows the new URL in results. Use 302 or 307 only for genuinely temporary moves.

What is the difference between 502, 503 and 504?

502: a proxy got a bad response from the app server. 503: the server is overloaded or in maintenance. 504: a proxy waited too long for the app server. All three usually point to a problem behind your load balancer or CDN.

Should a missing page return 404 or 410?

Use 410 Gone when a page was deliberately removed for good, and 404 when it never existed or might return. Search engines drop 410 pages a little faster.