HTTP Status Codes

Every HTTP status code with what it means and when to use it.

Your input

Matching codes 62

Status codes

CodeNameMeaningWhen you see it or use it
100ContinueRequest received, please continueThe client may continue sending the request body (after an Expect: 100-continue header).
101Switching ProtocolsSwitching to new protocol; obey Upgrade headerThe server agrees to switch protocol, for example to WebSocket.
102Processing—
103Early HintsLets the browser start loading linked resources before the final response is ready.
200OKRequest fulfilled, document followsThe request worked. The default success response for GET, and for POST that returns a result.
201CreatedDocument created, URL followsA new resource was created (usually the answer to POST or PUT). Send its address in the Location header.
202AcceptedRequest accepted, processing continues off-lineAccepted for processing later; the work is not finished yet.
203Non-Authoritative InformationRequest fulfilled from cache—
204No ContentRequest fulfilled, nothing followsSuccess with nothing to send back. Typical for DELETE and for PUT that returns no body.
205Reset ContentClear input form for further input—
206Partial ContentPartial content followsOnly part of the file is sent, because the client asked for a byte range (video seeking, resumed downloads).
207Multi-Status—
208Already Reported—
226IM Used—
300Multiple ChoicesObject has several resources -- see URI list—
301Moved PermanentlyObject moved permanently -- see URI listThe page has moved for good. Browsers and search engines should use the new address (Location header).
302FoundObject moved temporarily -- see URI listA temporary move. The original address stays the right one for the future.
303See OtherObject moved -- see Method and URL listAfter a POST, go and GET another page (the classic redirect after a form submit).
304Not ModifiedDocument has not changed since given timeNot modified: the cached copy is still good, so no body is sent.
305Use ProxyYou must use proxy specified in Location to access this resource—
307Temporary RedirectObject moved temporarily -- see URI listA temporary redirect that keeps the same method (a POST stays a POST).
308Permanent RedirectObject moved permanently -- see URI listA permanent redirect that keeps the same method.
400Bad RequestBad request syntax or unsupported methodThe request is malformed or invalid (bad JSON, missing field). The client should fix it before retrying.
401UnauthorizedNo permission -- see authorization schemesNot signed in, or the credentials are wrong. Despite the name it means unauthenticated.
402Payment RequiredNo payment -- see charging schemes—
403ForbiddenRequest forbidden -- authorization will not helpSigned in, but not allowed to do this. Retrying with the same credentials will not help.
404Not FoundNothing matches the given URINothing at this address. Also used to hide that a protected resource exists.
405Method Not AllowedSpecified method is invalid for this resourceThe method (GET, POST…) is not allowed for this address. The Allow header lists the ones that are.
406Not AcceptableURI not available in preferred formatThe server cannot produce any of the formats the client said it accepts.
407Proxy Authentication RequiredYou must authenticate with this proxy before proceeding—
408Request TimeoutRequest timed out; try again laterThe server gave up waiting for the client to finish sending the request.
409ConflictRequest conflictThe request clashes with the current state, for example an edit conflict or a duplicate.
410GoneURI no longer exists and has been permanently removedGone for good, on purpose. Stronger than 404 for removed pages.
411Length RequiredClient must specify Content-Length—
412Precondition FailedPrecondition in headers is false—
413Content Too LargeContent is too largeThe request body is bigger than the server accepts.
414URI Too LongURI is too longThe URL is too long.
415Unsupported Media TypeEntity body in unsupported formatThe server does not accept the format (Content-Type) of the request body.
416Range Not SatisfiableCannot satisfy request range—
417Expectation FailedExpect condition could not be satisfied—
418I'm a TeapotServer refuses to brew coffee because it is a teapot.An April Fools' joke from RFC 2324: a teapot refusing to brew coffee. Some sites use it to turn bots away.
421Misdirected RequestServer is not able to produce a response—
422Unprocessable ContentThe request is well formed but its content fails validation (common in APIs).
423Locked—
424Failed Dependency—
425Too Early—
426Upgrade Required—
428Precondition RequiredThe origin server requires the request to be conditional—
429Too Many RequestsThe user has sent too many requests in a given amount of time ("rate limiting")Too many requests: rate limit reached. A Retry-After header may say when to try again.
431Request Header Fields Too LargeThe server is unwilling to process the request because its header fields are too large—
451Unavailable For Legal ReasonsThe server is denying access to the resource as a consequence of a legal demandBlocked for legal reasons (the number is a nod to the book Fahrenheit 451).
500Internal Server ErrorServer got itself in troubleA generic server error: something went wrong on the server and it could not be more specific.
501Not ImplementedServer does not support this operationThe server does not support this feature or method.
502Bad GatewayInvalid responses from another server/proxyA gateway or proxy got an invalid answer from the server behind it.
503Service UnavailableThe server cannot process the request due to a high loadThe server is overloaded or down for maintenance. Usually temporary; Retry-After may say when it returns.
504Gateway TimeoutThe gateway server did not receive a timely responseA gateway or proxy timed out waiting for the server behind it.
505HTTP Version Not SupportedCannot fulfill request—
506Variant Also Negotiates—
507Insufficient Storage—
508Loop Detected—
510Not Extended—
511Network Authentication RequiredThe client needs to authenticate to gain network access—

What are HTTP status codes?

Every time a browser or app asks a server for something, the server answers with a three-digit status code. The first digit gives the class: 1xx is information, 2xx means success, 3xx means redirection, 4xx means the client made an error and 5xx means the server failed.

You already know some of them. 200 means OK, 404 means not found and 500 means the server hit an error. Others are more subtle, like 301 and 308 for permanent moves, or 502, 503 and 504 for different kinds of gateway and server trouble. This page lists them with the standard name, a short meaning and, for common ones, plain advice.

How to use the HTTP Status Codes

  1. Type a code, a name or a word in the search box.
  2. Choose a class such as 4xx to narrow the list.
  3. Read the meaning and the advice column.

Real situations

When people use the HTTP Status Codes

  • 1

    Debug an error from an API

    Look up a code you see in a response to find out whose fault it likely is and what to try.

  • 2

    Choose the right code in your own API

    Pick between 400, 401, 403, 404, 409 and 422 with a short description of each.

  • 3

    Set up redirects correctly

    Decide between 301, 302, 307 and 308 for a move, and see whether the request method is kept.

  • 4

    Explain an outage to a colleague

    Tell the difference between 502, 503 and 504 for a gateway or load problem.

FAQ

HTTP Status Codes: questions answered

What is the difference between 401 and 403?

401 means the server does not know who you are: you are not signed in or your credentials are wrong. 403 means it knows who you are and you are not allowed. Signing in again will not fix a 403.

Which redirect should I use?

301 or 308 for a permanent move, where 308 keeps the request method. 302 or 307 for a temporary move, where 307 keeps the method. 303 sends a browser to a different page after a form submit.

What is the difference between 404 and 410?

404 means nothing was found at that address, and it can also hide that a protected page exists. 410 means the page is gone for good on purpose, which is a stronger signal for removed pages.

What do 502, 503 and 504 mean?

502 means a gateway or proxy got an invalid answer from the server behind it. 503 means the server is overloaded or down for maintenance. 504 means a gateway timed out waiting for the server behind it.

What does 429 mean?

Too Many Requests. You hit a rate limit. A Retry-After header may tell you when to try again, so slow down or wait before retrying.

Is 418 a real status code?

It is defined as a joke in an April Fools' RFC from 1998: the server refuses to brew coffee because it is a teapot. Some sites use it to turn bots away.

Is this HTTP Status Codes free and private?

Yes. It is free with no sign-in, and every calculation runs inside your browser. Nothing you type is sent to a server or stored, and the page keeps working offline once it has loaded.

Private by design. No accounts, no cookies, no tracking. Everything you type stays on your device.

How we keep it that way