Web & network
Every common HTTP status code, what it means and when to use it. Search by number or name.
Runs in your browser — nothing you paste is uploaded
58 status codes
The headers were received; the client should send the request body. Used with Expect: 100-continue before large uploads.
The server agrees to the Upgrade header, for example to switch the connection to WebSocket.
Lets the server send Link headers early, so the browser can preload assets while the real response is prepared.
The request succeeded. The body carries the result.
A new resource was created, usually after a POST. Send its URL in the Location header.
The request was accepted for processing, but the work isn't done yet. Good for queued or async jobs.
Success, but a proxy modified the response from the origin server.
Success with no body. Common for DELETE and for updates that return nothing.
Success; the client should reset the form or view that sent the request.
Only part of the resource is returned, in answer to a Range header. Used for resumable downloads and video seeking.
WebDAV: the body holds separate status codes for several operations.
The resource has several representations to choose from. Rarely used in practice.
The resource has a new permanent URL. Search engines update their links. Browsers may change POST to GET when following it.
A temporary redirect. Browsers may change POST to GET; use 307 to keep the method.
Redirect to another URL with GET. The usual answer after a form POST (Post/Redirect/Get).
The cached copy is still fresh (ETag or Last-Modified matched), so no body is sent.
A temporary redirect that keeps the method and body. The safe choice for redirecting POST requests.
Like 301, but the method and body must not change.
The request is malformed: invalid syntax, bad JSON or missing fields. The client should fix it before retrying.
Authentication is missing or invalid. Despite the name it means “unauthenticated” — log in and try again.
Reserved for future use. Some APIs use it when a plan's quota or billing has run out.
The server knows who you are, but you aren't allowed to do this. Logging in again won't help.
Nothing exists at this URL. Also used to hide resources the client may not know about.
The URL exists but doesn't support this method. Send an Allow header listing the ones it does.
The server can't produce a response matching the Accept headers.
Like 401, but the client must authenticate with a proxy first.
The server gave up waiting for the client to finish sending the request.
The request conflicts with the current state, such as an edit conflict or a duplicate unique value.
The resource was removed on purpose and won't come back. Stronger than 404.
The server requires a Content-Length header.
A conditional header such as If-Match didn't hold. Used for optimistic locking.
The request body is bigger than the server allows. Formerly “Payload Too Large”.
The URL is longer than the server will handle. Usually a sign that data belongs in the body.
The server doesn't accept the request's Content-Type, such as XML sent to a JSON API.
The Range header asks for bytes outside the resource.
The server can't meet the request's Expect header.
An April Fools' joke from 1998 (RFC 2324): the server refuses to brew coffee because it is a teapot. Kept for fun.
The request reached a server that can't answer for this host, often due to connection reuse.
The syntax is fine but the content fails validation, such as an invalid email in a form.
WebDAV: the resource is locked.
WebDAV: the request failed because an earlier one it depended on failed.
The server won't process a request that might be replayed (TLS early data).
The client must switch protocols, named in the Upgrade header.
The server requires a conditional request (such as If-Match) to prevent lost updates.
Rate limited. Respect the Retry-After header before trying again.
The headers are too big — often an oversized cookie.
Blocked for legal reasons, such as a court order. Named after Fahrenheit 451.
A generic server failure — usually an unhandled exception. Check the server logs.
The server doesn't support the functionality needed, such as an unknown method.
A proxy or gateway got an invalid response from the upstream server. Often the app behind it is down.
The server is overloaded or in maintenance. Send Retry-After if you know when it will be back.
A proxy or gateway didn't get a response from upstream in time.
The server doesn't support the request's HTTP version.
A content-negotiation misconfiguration on the server.
WebDAV: the server can't store what's needed to complete the request.
WebDAV: the server hit an infinite loop while processing the request.
Further extensions to the request are required. Rarely used.
You need to sign in to the network first, as with a captive portal on hotel Wi-Fi.
401 Unauthorized means you aren't authenticated, so log in and try again. 403 Forbidden means you are known but not allowed, so logging in again won't help.
Both are permanent. 308 guarantees the method and body are kept, so use it for APIs and POST requests; 301 is fine for ordinary pages.
1xx are informational, 2xx success, 3xx redirection, 4xx client errors and 5xx server errors.