Skip to content
Private: files never leave your device

HTTP Status Codes List

Every status code currently in the official IANA HTTP Status Code Registry, grouped by class, with a plain meaning, the RFC that defines it and the header fields the standard asks for. Use it to look up an unfamiliar code in a log or to pick the right one for an API response.

HTTP status code classes: 1xx informational, 2xx successful, 3xx redirection, 4xx client error and 5xx server error

An HTTP status code is the three-digit number a server sends back with every response, and its first digit tells you the class: 1xx informational, 2xx successful, 3xx redirection, 4xx client error and 5xx server error. RFC 9110 says all valid codes fall between 100 and 599, and the last two digits have no categorizing role. The full list below comes from the IANA HTTP Status Code Registry, which was checked on 23 November 2026, and the notes come from the RFCs it cites.

The five classes

ClassMeaning in RFC 9110Typical cause
1xx InformationalThe request was received, continuing processInterim reply before the final response
2xx SuccessfulThe request was successfully received, understood and acceptedThe request worked
3xx RedirectionFurther action needs to be taken to complete the requestThe resource moved or a cached copy is still valid
4xx Client ErrorThe request contains bad syntax or cannot be fulfilledWrong address, missing login, bad input or too many requests
5xx Server ErrorThe server failed to fulfil an apparently valid requestA crash, an overloaded server or a failed upstream

RFC 9110 also says a client that meets a code it does not know must treat it like the x00 code of the same class. An unknown 471, for example, is handled as 400 Bad Request.

Full list of registered status codes

CodeNameDefined in
100ContinueRFC 9110
101Switching ProtocolsRFC 9110
102ProcessingRFC 2518
103Early HintsRFC 8297
104Upload Resumption Supported (temporary registration)draft-ietf-httpbis-resumable-upload
200OKRFC 9110
201CreatedRFC 9110
202AcceptedRFC 9110
203Non-Authoritative InformationRFC 9110
204No ContentRFC 9110
205Reset ContentRFC 9110
206Partial ContentRFC 9110
207Multi-StatusRFC 4918 (WebDAV)
208Already ReportedRFC 5842 (WebDAV)
226IM UsedRFC 3229
300Multiple ChoicesRFC 9110
301Moved PermanentlyRFC 9110
302FoundRFC 9110
303See OtherRFC 9110
304Not ModifiedRFC 9110
305Use ProxyRFC 9110
306(Unused), reservedRFC 9110
307Temporary RedirectRFC 9110
308Permanent RedirectRFC 9110
400Bad RequestRFC 9110
401UnauthorizedRFC 9110
402Payment RequiredRFC 9110
403ForbiddenRFC 9110
404Not FoundRFC 9110
405Method Not AllowedRFC 9110
406Not AcceptableRFC 9110
407Proxy Authentication RequiredRFC 9110
408Request TimeoutRFC 9110
409ConflictRFC 9110
410GoneRFC 9110
411Length RequiredRFC 9110
412Precondition FailedRFC 9110
413Content Too LargeRFC 9110
414URI Too LongRFC 9110
415Unsupported Media TypeRFC 9110
416Range Not SatisfiableRFC 9110
417Expectation FailedRFC 9110
418(Unused), reservedRFC 9110
421Misdirected RequestRFC 9110
422Unprocessable ContentRFC 9110
423LockedRFC 4918 (WebDAV)
424Failed DependencyRFC 4918 (WebDAV)
425Too EarlyRFC 8470
426Upgrade RequiredRFC 9110
428Precondition RequiredRFC 6585
429Too Many RequestsRFC 6585
431Request Header Fields Too LargeRFC 6585
451Unavailable For Legal ReasonsRFC 7725
500Internal Server ErrorRFC 9110
501Not ImplementedRFC 9110
502Bad GatewayRFC 9110
503Service UnavailableRFC 9110
504Gateway TimeoutRFC 9110
505HTTP Version Not SupportedRFC 9110
506Variant Also NegotiatesRFC 2295
507Insufficient StorageRFC 4918 (WebDAV)
508Loop DetectedRFC 5842 (WebDAV)
510Not Extended (marked obsoleted)RFC 2774
511Network Authentication RequiredRFC 6585

Every number not listed, such as 419, 420, 427, 430 or 509, is unassigned in the registry. Codes you may see in logs that are missing here, for example 499 or 520, are product-specific and not part of the standard. The registry lists 104 as a temporary registration for resumable uploads, with an expiry date of 13 November 2026 shown next to it, so check its current status before relying on it.

Codes that need a specific header

CodeWhat the RFC asks for
401 UnauthorizedThe server must send a WWW-Authenticate header with at least one challenge
405 Method Not AllowedThe origin server must send an Allow header listing the methods it accepts
301, 302, 307, 308The server should send a Location header with the new address
413 Content Too LargeIf the problem is temporary, the server should send Retry-After
429 Too Many RequestsMay include Retry-After to say how long to wait (RFC 6585)
503 Service UnavailableThe server may send Retry-After to suggest when to try again

Pairs that are easy to mix up

  • 301 versus 308: both are permanent. RFC 9110 notes that, for historical reasons, a browser may turn a POST into a GET after a 301 or 302. Use 308 when the method must stay the same.
  • 302 versus 307: both are temporary. With 307 the client must not change the method.
  • 401 versus 403: 401 means valid credentials are missing or were refused and comes with a challenge. 403 means the server understood the request and refuses it; sending the same credentials again will not help.
  • 404 versus 410: 404 says nothing about whether the absence is temporary. 410 tells clients the removal is likely permanent and that links to it should be removed.
  • 400 versus 422: 400 is for a request the server cannot or will not process, such as malformed syntax. 422 is for content whose syntax is correct but whose instructions cannot be processed.
  • 502 versus 504: both come from a gateway or proxy. 502 means the upstream reply was invalid; 504 means the upstream did not reply in time.

Which responses caches reuse by default

RFC 9110 names 200, 203, 204, 206, 300, 301, 308, 404, 405, 410, 414 and 501 as heuristically cacheable. A cache may store and reuse these without explicit freshness headers, so a 404 served during a broken deploy can keep appearing after the fix. Send a Cache-Control header on error pages if that matters.

Reading an API error When an API returns a 4xx with a JSON body, paste the body into the JSON Formatter to read the error message. If the call uses a bearer token, the JWT Decoder shows its exp claim, so you can rule out an expired token before looking elsewhere.

For 414 and the limits behind it, see URL length limits. For the Content-Type values that cause 415, see document MIME types.

Sources and dates

PageCheckedUsed for
IANA HTTP Status Code Registry23 November 2026The full list of codes, names, unassigned ranges and defining RFCs
RFC 9110: HTTP Semantics23 November 2026Classes, unknown code handling, header requirements, redirect behaviour, 418 and heuristic caching
RFC 6585: Additional HTTP Status Codes23 November 2026428, 429, 431 and 511

Frequently asked questions

How many HTTP status codes are there?

The IANA registry checked on 23 November 2026 lists 64 assigned values from 100 to 511, including the reserved 306 and 418 and the temporary 104. All other numbers from 100 to 599 are unassigned.

What do the 4xx and 5xx codes mean?

4xx codes mean the problem is on the client side, such as a wrong address, missing login or invalid input. 5xx codes mean the server failed to handle an apparently valid request.

Is 418 I am a teapot a real status code?

No. RFC 9110 says 418 came from an April 1 joke RFC and is now reserved as (Unused) in the IANA registry, so it cannot be assigned to anything else for now.

What is the difference between 301 and 308?

Both mean the resource moved permanently. After a 301 a browser may change a POST into a GET, while a 308 keeps the original method.

What should a client do with an unknown status code?

RFC 9110 says to treat it like the x00 code of its class, so an unknown 4xx is handled as 400 Bad Request and an unknown 5xx as 500.

Which header should a 429 response include?

RFC 6585 says a 429 response may include a Retry-After header telling the client how long to wait before trying again.