Skip to content

HTTP status code lookup

Free, no sign-up Runs in your browser

Search every registered HTTP status code by number, class or meaning. Each one has a plain explanation and the RFC that defines it, from the IANA registry.

All 64 codes in the IANA registry. Search by number, by class (4xx) or by words.

CodeNameClassMeaningDefined in
100ContinueInformationalThe server has received the request headers and the client may send the body. Sent in answer to Expect: 100-continue.RFC 9110, Section 15.2.1
101Switching ProtocolsInformationalThe server agrees to change protocol as the Upgrade header asked. This is how a WebSocket connection starts.RFC 9110, Section 15.2.2
102ProcessingInformationalThe server has accepted a WebDAV request and is still working on it. Rarely seen today.RFC 2518
103Early HintsInformationalSent before the final response, with Link headers so the browser can start preloading resources.RFC 8297
104Upload Resumption Supported (Temporary registration)InformationalTells the client that the server supports resumable uploads, and where to resume one.draft-ietf-httpbis-resumable-upload-05
200OKSuccessfulThe request succeeded. What the body holds depends on the method.RFC 9110, Section 15.3.1
201CreatedSuccessfulThe request succeeded and created a new resource, usually named in the Location header.RFC 9110, Section 15.3.2
202AcceptedSuccessfulThe request was accepted for processing that has not finished and may still fail.RFC 9110, Section 15.3.3
203Non-Authoritative InformationSuccessfulThe request succeeded, but a proxy changed the content the origin server sent.RFC 9110, Section 15.3.4
204No ContentSuccessfulThe request succeeded and there is no body to send back.RFC 9110, Section 15.3.5
205Reset ContentSuccessfulThe request succeeded and the client should reset the view that sent it, such as clearing a form.RFC 9110, Section 15.3.6
206Partial ContentSuccessfulThe server is sending only the part of the resource that the Range header asked for.RFC 9110, Section 15.3.7
207Multi-StatusSuccessfulA WebDAV response whose body holds a separate status for each of several resources.RFC 4918
208Already ReportedSuccessfulIn a WebDAV listing, the members of this binding were already listed earlier in the same response.RFC 5842
226IM UsedSuccessfulThe response is the result of applying a delta encoding to the resource the client already has.RFC 3229
300Multiple ChoicesRedirectionThe resource has several representations and the client should pick one.RFC 9110, Section 15.4.1
301Moved PermanentlyRedirectionThe resource has a new permanent URL, given in Location. Clients may change a POST into a GET when they follow it.RFC 9110, Section 15.4.2
302FoundRedirectionThe resource is temporarily at another URL. Clients may change a POST into a GET when they follow it.RFC 9110, Section 15.4.3
303See OtherRedirectionThe answer is at another URL, to be fetched with GET. The usual reply to a form submission.RFC 9110, Section 15.4.4
304Not ModifiedRedirectionThe cached copy the client has is still good. No body is sent.RFC 9110, Section 15.4.5
305Use ProxyRedirectionDeprecated. It told the client to repeat the request through a proxy, and clients ignore it for security reasons.RFC 9110, Section 15.4.6
306(Unused) (Reserved)RedirectionDefined in an earlier specification, no longer used, and reserved.RFC 9110, Section 15.4.7
307Temporary RedirectRedirectionThe resource is temporarily at another URL. The method and body must stay the same when following it.RFC 9110, Section 15.4.8
308Permanent RedirectRedirectionThe resource has a new permanent URL. The method and body must stay the same when following it.RFC 9110, Section 15.4.9
400Bad RequestClient errorThe server cannot or will not process the request because it is malformed.RFC 9110, Section 15.5.1
401UnauthorizedClient errorThe request has no valid credentials. Despite the name it is about authentication: log in and try again.RFC 9110, Section 15.5.2
402Payment RequiredClient errorReserved for future use. Some APIs send it when a quota or a plan is used up.RFC 9110, Section 15.5.3
403ForbiddenClient errorThe server understood the request and refuses it. Logging in again will not help: the identity is known and not allowed.RFC 9110, Section 15.5.4
404Not FoundClient errorThe server has nothing at this URL, or does not want to say that it has.RFC 9110, Section 15.5.5
405Method Not AllowedClient errorThe resource exists but does not support this method. The Allow header lists the ones it does.RFC 9110, Section 15.5.6
406Not AcceptableClient errorThe server has no representation that fits the Accept headers of the request.RFC 9110, Section 15.5.7
407Proxy Authentication RequiredClient errorLike 401, but it is the proxy that wants credentials.RFC 9110, Section 15.5.8
408Request TimeoutClient errorThe server gave up waiting for the client to finish sending the request.RFC 9110, Section 15.5.9
409ConflictClient errorThe request conflicts with the current state of the resource, such as an edit based on an old version.RFC 9110, Section 15.5.10
410GoneClient errorThe resource was here and has been removed for good.RFC 9110, Section 15.5.11
411Length RequiredClient errorThe server will not accept the request without a Content-Length header.RFC 9110, Section 15.5.12
412Precondition FailedClient errorA condition in the request headers, such as If-Match, was not met.RFC 9110, Section 15.5.13
413Content Too LargeClient errorThe request body is larger than the server is willing to process. Formerly Payload Too Large.RFC 9110, Section 15.5.14
414URI Too LongClient errorThe URL is longer than the server is willing to read.RFC 9110, Section 15.5.15
415Unsupported Media TypeClient errorThe body is in a format the resource does not accept for this method. Check Content-Type.RFC 9110, Section 15.5.16
416Range Not SatisfiableClient errorThe Range header asks for a part that lies outside the resource.RFC 9110, Section 15.5.17
417Expectation FailedClient errorThe server cannot meet the Expect header of the request.RFC 9110, Section 15.5.18
418(Unused) (Reserved)Client errorReserved. It was the “I’m a teapot” joke of RFC 2324 and cannot be assigned to anything else for now.RFC 9110, Section 15.5.19
421Misdirected RequestClient errorThe request reached a server that cannot answer for this host, usually because a connection was reused wrongly.RFC 9110, Section 15.5.20
422Unprocessable ContentClient errorThe body is well formed but its content is invalid, such as a field that fails validation.RFC 9110, Section 15.5.21
423LockedClient errorThe WebDAV resource is locked.RFC 4918
424Failed DependencyClient errorThe WebDAV action failed because another action it depended on failed.RFC 4918
425Too EarlyClient errorThe server will not process a request sent in TLS early data, because it could be a replay.RFC 8470
426Upgrade RequiredClient errorThe server refuses this protocol and names the one to switch to in the Upgrade header.RFC 9110, Section 15.5.22
428Precondition RequiredClient errorThe server requires the request to be conditional, to prevent one client overwriting another’s update.RFC 6585
429Too Many RequestsClient errorThe client is being rate limited. Retry-After may say when to try again.RFC 6585
431Request Header Fields Too LargeClient errorThe headers, one of them or all together, are too large. Oversized cookies are the usual cause.RFC 6585
451Unavailable For Legal ReasonsClient errorAccess is denied because of a legal demand, such as a court order.RFC 7725
500Internal Server ErrorServer errorThe server hit an unexpected condition. The fault is on the server side.RFC 9110, Section 15.6.1
501Not ImplementedServer errorThe server does not support what the request needs, such as the method.RFC 9110, Section 15.6.2
502Bad GatewayServer errorA gateway or proxy got an invalid response from the server behind it.RFC 9110, Section 15.6.3
503Service UnavailableServer errorThe server cannot handle the request right now, because of overload or maintenance. Retry-After may say when.RFC 9110, Section 15.6.4
504Gateway TimeoutServer errorA gateway or proxy did not get a response from the server behind it in time.RFC 9110, Section 15.6.5
505HTTP Version Not SupportedServer errorThe server does not support the major HTTP version of the request.RFC 9110, Section 15.6.6
506Variant Also NegotiatesServer errorA configuration error in content negotiation: the chosen variant itself tries to negotiate.RFC 2295
507Insufficient StorageServer errorThe WebDAV server cannot store what it needs to complete the request.RFC 4918
508Loop DetectedServer errorThe WebDAV server found an infinite loop while processing the request.RFC 5842
510Not Extended (Obsoleted)Server errorThe request lacked an extension the server required. The HTTP Extension Framework that defined it is now historic.RFC 2774
511Network Authentication RequiredServer errorThe client must log in to the network first. Sent by captive portals, not by the site you asked for.RFC 6585

Everything you type here stays in your browser. Nothing is sent to HardenKit or to anyone else.

How to use the HTTP status code lookup

  1. Type a code, such as 404, to see that code.
  2. Type a class, such as 4xx, to list a whole class.
  3. Or search by words: redirect, rate limit, WebDAV, an RFC number.
  4. Read the meaning and the document that defines the code.

About this tool

Every HTTP response starts with a three-digit status code. The first digit gives the class: 1xx is informational, 2xx is success, 3xx is a redirect, 4xx says the request was at fault and 5xx says the server was. IANA keeps the registry of assigned codes, and most are defined in RFC 9110, the current HTTP specification.

The codes carry security meaning. 401 says the request was not authenticated and 403 that it was authenticated and refused. Mixing them up misleads clients. An API that answers 403 for records that exist and 404 for ones that do not tells an attacker which IDs are real. 429 is how rate limiting is signaled. 301 and 302 may turn a POST into a GET, where 307 and 308 may not.

This table has every code in the registry, including the reserved and obsolete ones, with the registry’s own names. RFC 9110 renamed two: 413 is now Content Too Large and 422 is Unprocessable Content. Codes outside the registry, such as 499 or 520, are private to the product that sends them, and a client treats an unknown code as the x00 of its class.

Sources

Questions

What is the difference between 401 and 403?

401 Unauthorized means the request lacks valid credentials: authenticate and try again. 403 Forbidden means the server knows who is asking and refuses. Sending new credentials will not change a 403.

What is the difference between 301, 302, 307 and 308?

301 and 308 are permanent, 302 and 307 temporary. With 301 and 302 a client may change a POST into a GET when it follows the redirect. 307 and 308 require the method and the body to stay the same.

What is the difference between 502, 503 and 504?

502 Bad Gateway means a proxy got an invalid answer from the server behind it. 503 Service Unavailable means the server cannot take the request right now, from overload or maintenance. 504 Gateway Timeout means the proxy got no answer in time.

Is 418 I’m a teapot a real status code?

It began as an April Fools’ joke in RFC 2324. It was never a real HTTP status, but so much software implemented it that RFC 9110 reserved 418 as unused, so that it cannot be given another meaning.

Should an API return 404 or 403 for a resource the user may not see?

Often 404. RFC 9110 allows a server to answer 404 when it does not want to reveal that a resource exists. Whatever you choose, answer the same way for a resource that is missing and one that belongs to someone else, so the response does not leak which IDs are in use.

Related tools