What Is?
An HTTP status code is the three-digit number a web server sends back with every response to tell the result of the request. For example, it is 200 when the request succeeded and 404 when the page was not found.[1] Valid codes run from 100 to 599, and the first digit gives the class of the response.[1]
The codes are defined in RFC 9110 (HTTP Semantics, June 2022) and other IETF documents;[1] the official list is the HTTP Status Code Registry kept by IANA.[2] The short text after the code, such as "Not Found", is called the reason phrase; it is only a recommendation and a server can replace or leave it out.[1] A client that does not know a code treats it like the x00 code of its class. So an unknown 4xx code is handled as 400.[1]
Status Code Classes
The table below shows the five classes and what they mean.[1]
| Class | Name | Meaning |
|---|---|---|
| 1xx | Informational | The request was received, the process continues. |
| 2xx | Successful | The request was received, understood and accepted. |
| 3xx | Redirection | Further action is needed to complete the request. |
| 4xx | Client Error | The request has bad syntax or cannot be fulfilled. |
| 5xx | Server Error | The server failed to fulfill an apparently valid request. |
Status Code List
All 63 codes in the IANA registry (temporary registrations not included), with their official names.[2] Every code has its own link.
For example, adding #404 to the end of this page's address jumps straight to 404.
1xx Informational
| Code | Name | Description | Defined In |
|---|---|---|---|
| 100 | Continue | The first part of the request was received and not rejected; the server will send a final response after the whole request. | RFC 9110 15.2.1[1] |
| 101 | Switching Protocols | The server agrees to switch to the protocol the client asked for in the Upgrade header. | RFC 9110 15.2.2[1] |
| 102 | Processing | The server has the request but needs more time to process it; a final response will follow (WebDAV). | RFC 2518[3] |
| 103 | Early Hints | Sent before the final response, with header fields the final response is likely to have. | RFC 8297[4] |
2xx Successful
| Code | Name | Description | Defined In |
|---|---|---|---|
| 200 | OK | The request succeeded. | RFC 9110 15.3.1[1] |
| 201 | Created | The request succeeded and created a new resource, usually given in the Location header. | RFC 9110 15.3.2[1] |
| 202 | Accepted | The request was accepted for processing, but the processing has not finished. | RFC 9110 15.3.3[1] |
| 203 | Non-Authoritative Information | The request succeeded, but a transforming proxy changed the content of the origin server's 200 response. | RFC 9110 15.3.4[1] |
| 204 | No Content | The request succeeded and there is no content to send back. | RFC 9110 15.3.5[1] |
| 205 | Reset Content | The request succeeded; the client should reset its data entry view (a form, for example) for the next entry. | RFC 9110 15.3.6[1] |
| 206 | Partial Content | The server sends only the requested part(s) of the resource (range request). | RFC 9110 15.3.7[1] |
| 207 | Multi-Status | Gives the status of several independent operations in one response (WebDAV). | RFC 4918[5] |
| 208 | Already Reported | The members of a collection were already listed earlier in the same response, so they are not repeated (WebDAV). | RFC 5842[6] |
| 226 | IM Used | The response is the result of instance manipulations, such as a delta, applied to the current version of the resource. | RFC 3229[7] |
3xx Redirection
| Code | Name | Description | Defined In |
|---|---|---|---|
| 300 | Multiple Choices | The resource has more than one representation, and the client can choose one. | RFC 9110 15.4.1[1] |
| 301 | Moved Permanently | The resource has a new permanent URL; future requests should use it. | RFC 9110 15.4.2[1] |
| 302 | Found | The resource is temporarily at another URL; the client should keep using the original URL. | RFC 9110 15.4.3[1] |
| 303 | See Other | Sends the client to another resource (Location header), which it can fetch with GET or HEAD. | RFC 9110 15.4.4[1] |
| 304 | Not Modified | The resource has not changed since the copy the client has; the client can use its stored copy. | RFC 9110 15.4.5[1] |
| 305 | Use Proxy | Deprecated. | RFC 9110 15.4.6[1] |
| 306 | (Unused) | No longer used; the code is reserved. | RFC 9110 15.4.7[1] |
| 307 | Temporary Redirect | The resource is temporarily at another URL; the request method must not change when the redirect is followed. | RFC 9110 15.4.8[1] |
| 308 | Permanent Redirect | The resource has a new permanent URL; like 307, it keeps the request method. | RFC 9110 15.4.9[1] |
4xx Client Error
| Code | Name | Description | Defined In |
|---|---|---|---|
| 400 | Bad Request | The server cannot or will not process the request because of a client error, such as malformed syntax. | RFC 9110 15.5.1[1] |
| 401 | Unauthorized | The request has no valid authentication credentials. | RFC 9110 15.5.2[1] |
| 402 | Payment Required | Reserved for future use. | RFC 9110 15.5.3[1] |
| 403 | Forbidden | The server understood the request but refuses to fulfill it. | RFC 9110 15.5.4[1] |
| 404 | Not Found | The server found nothing at this URL, or does not want to reveal that something exists. | RFC 9110 15.5.5[1] |
| 405 | Method Not Allowed | The method (such as POST) is known but not supported by this resource; the Allow header lists the allowed methods. | RFC 9110 15.5.6[1] |
| 406 | Not Acceptable | No representation matches the client's Accept headers, and the server will not send a default one. | RFC 9110 15.5.7[1] |
| 407 | Proxy Authentication Required | Like 401, but the client must authenticate with a proxy. | RFC 9110 15.5.8[1] |
| 408 | Request Timeout | The server did not receive a complete request within the time it was willing to wait. | RFC 9110 15.5.9[1] |
| 409 | Conflict | The request conflicts with the current state of the resource. | RFC 9110 15.5.10[1] |
| 410 | Gone | The resource is no longer available, and this is likely permanent. | RFC 9110 15.5.11[1] |
| 411 | Length Required | The server requires a Content-Length header. | RFC 9110 15.5.12[1] |
| 412 | Precondition Failed | A condition in the request headers (such as If-Match) turned out false on the server. | RFC 9110 15.5.13[1] |
| 413 | Content Too Large | The request body is larger than the server is willing or able to process. | RFC 9110 15.5.14[1] |
| 414 | URI Too Long | The URL is longer than the server is willing to interpret. | RFC 9110 15.5.15[1] |
| 415 | Unsupported Media Type | The format of the request content is not supported. | RFC 9110 15.5.16[1] |
| 416 | Range Not Satisfiable | The requested range(s) of the resource cannot be served. | RFC 9110 15.5.17[1] |
| 417 | Expectation Failed | The expectation in the Expect header could not be met. | RFC 9110 15.5.18[1] |
| 418 | (Unused) | Reserved; known as "I'm a teapot" from an April Fools' RFC (see the FAQ below). | RFC 9110 15.5.19[1] |
| 421 | Misdirected Request | The request went to a server that cannot give an authoritative response for this URL. | RFC 9110 15.5.20[1] |
| 422 | Unprocessable Content | The request is well-formed, but the server cannot process the instructions in it. | RFC 9110 15.5.21[1] |
| 423 | Locked | The resource is locked (WebDAV). | RFC 4918[5] |
| 424 | Failed Dependency | The method failed because it depended on another action that failed (WebDAV). | RFC 4918[5] |
| 425 | Too Early | The server will not risk processing a request that might be replayed (TLS early data). | RFC 8470[8] |
| 426 | Upgrade Required | The client must switch to another protocol, named in the Upgrade header. | RFC 9110 15.5.22[1] |
| 428 | Precondition Required | The server requires the request to be conditional, to avoid the "lost update" problem. | RFC 6585[9] |
| 429 | Too Many Requests | The client sent too many requests in a given time (rate limiting); a Retry-After header may say how long to wait. | RFC 6585[9] |
| 431 | Request Header Fields Too Large | The request header fields are too large. | RFC 6585[9] |
| 451 | Unavailable For Legal Reasons | Access is denied because of a legal demand. | RFC 7725[10] |
5xx Server Error
| Code | Name | Description | Defined In |
|---|---|---|---|
| 500 | Internal Server Error | The server hit an unexpected condition that stopped it from fulfilling the request. | RFC 9110 15.6.1[1] |
| 501 | Not Implemented | The server does not support the functionality needed, such as an unknown method. | RFC 9110 15.6.2[1] |
| 502 | Bad Gateway | A gateway or proxy got an invalid response from the server behind it. | RFC 9110 15.6.3[1] |
| 503 | Service Unavailable | The server is temporarily unable to handle the request, for example because of overload or maintenance. | RFC 9110 15.6.4[1] |
| 504 | Gateway Timeout | A gateway or proxy did not get a response in time from the server behind it. | RFC 9110 15.6.5[1] |
| 505 | HTTP Version Not Supported | The server does not support the major HTTP version of the request. | RFC 9110 15.6.6[1] |
| 506 | Variant Also Negotiates | The chosen variant is itself set up to negotiate, which is a server configuration error. | RFC 2295[11] |
| 507 | Insufficient Storage | The server cannot store what it needs to complete the request (WebDAV). | RFC 4918[5] |
| 508 | Loop Detected | The server stopped the operation because it ran into an infinite loop (WebDAV). | RFC 5842[6] |
| 510 | Not Extended (Obsoleted) | The request did not meet the policy for accessing the resource; the code is obsolete. | RFC 2774[12] |
| 511 | Network Authentication Required | The client must authenticate to get network access; meant for captive portals. | RFC 6585[9] |
Unofficial Status Codes
Some web servers, frameworks and CDNs use codes that are not in the IANA registry. A browser that does not know such a code treats it as the x00 code of its class, so 520 is handled like 500.[1]
| Code | Name | Used By | Description |
|---|---|---|---|
| 419 | Page Expired | Laravel | The CSRF token of a form is missing or expired, for example after the page was left open too long. |
| 444 | No Response | nginx | nginx closes the connection without sending a response header.[13] |
| 495 | SSL Certificate Error | nginx | The client certificate could not be verified.[14] |
| 496 | SSL Certificate Required | nginx | The client did not send a required certificate.[14] |
| 497 | HTTP Request Sent to HTTPS Port | nginx | A plain HTTP request was sent to the HTTPS port.[14] |
| 499 | Client Closed Request | nginx | The client closed the connection before the server answered; seen in nginx logs. |
| 460 | - | AWS ALB | The client closed the connection before the load balancer's idle timeout ran out.[15] |
| 463 | - | AWS ALB | The X-Forwarded-For header has too many IP addresses (more than 30).[15] |
| 464 | - | AWS ALB | The request's protocol does not match the target group's protocol version.[15] |
| 520 | Web server returns an unknown error | Cloudflare | The origin server sent an empty, unknown or unexpected response.[16] |
| 521 | Web server is down | Cloudflare | The origin server refuses Cloudflare's connections.[17] |
| 522 | Connection timed out | Cloudflare | Cloudflare timed out while connecting to the origin server.[18] |
| 523 | Origin is unreachable | Cloudflare | Cloudflare cannot reach the origin server.[19] |
| 524 | A timeout occurred | Cloudflare | Cloudflare connected to the origin server, but got no HTTP response within 125 seconds.[20] |
| 525 | SSL handshake failed | Cloudflare | The SSL/TLS handshake between Cloudflare and the origin server failed.[21] |
| 526 | Invalid SSL certificate | Cloudflare | Cloudflare cannot verify the origin server's SSL certificate.[22] |
| 530 | - | Cloudflare | Cloudflare cannot resolve the hostname of the origin server.[23] |
| 561 | Unauthorized | AWS ALB | The identity provider returned an error while the load balancer was authenticating the user.[15] |
FAQ
What Is the Difference Between 401 and 403?
401 Unauthorized means the request has no valid credentials; the client may try again with new or replaced credentials.[1] 403 Forbidden means the server understood the request but refuses it; if credentials were sent, the server finds them insufficient, and the client should not simply repeat the request with the same credentials.[1]
What Is the Difference Between 301, 302, 307 and 308?
| Code | Move | POST may become GET |
|---|---|---|
| 301 Moved Permanently | Permanent | Yes |
| 302 Found | Temporary | Yes |
| 307 Temporary Redirect | Temporary | No |
| 308 Permanent Redirect | Permanent | No |
For historical reasons a browser may turn a POST into a GET when it follows a 301 or 302; 307 and 308 always keep the original method, so they are the safe choice for redirecting a form or an API request.[1]
What Is the Difference Between 502 and 504?
Both come from a gateway or proxy (such as a load balancer or CDN) standing in front of the real server. 502 Bad Gateway means the server behind it sent an invalid response. 504 Gateway Timeout means the server behind it sent no response in time.[1]
Is 418 I'm a Teapot a Real Status Code?
Not really. "418 I'm a teapot" comes from RFC 2324, the Hyper Text Coffee Pot Control Protocol, an April Fools' joke published on April 1, 1998. In that RFC, a teapot asked to brew coffee answers 418.[24] It was deployed as a joke so often that the code is now reserved and marked "(Unused)"; it can be given another meaning only if the 4xx codes ever run out.[1]
404 or 410 for a Deleted Page?
Both say the page is not there. 410 Gone adds that the removal is likely permanent; it is meant for web maintenance, such as a limited-time promotion that has ended.[1] 404 Not Found says nothing about whether the page will come back, so use 410 when you know the page is gone for good and 404 when you do not.[1]
Sources
- RFC 9110: HTTP Semantics, IETF (2022-06)
- Hypertext Transfer Protocol (HTTP) Status Code Registry, IANA (2025-09-15)
- RFC 2518: HTTP Extensions for Distributed Authoring -- WEBDAV, IETF (1999-02)
- RFC 8297: An HTTP Status Code for Indicating Hints, IETF (2017-12)
- RFC 4918: HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV), IETF (2007-06)
- RFC 5842: Binding Extensions to Web Distributed Authoring and Versioning (WebDAV), IETF (2010-04)
- RFC 3229: Delta encoding in HTTP, IETF (2002-01)
- RFC 8470: Using Early Data in HTTP, IETF (2018-09)
- RFC 6585: Additional HTTP Status Codes, IETF (2012-04)
- RFC 7725: An HTTP Status Code to Report Legal Obstacles, IETF (2016-02)
- RFC 2295: Transparent Content Negotiation in HTTP, IETF (1998-03)
- RFC 2774: An HTTP Extension Framework, IETF (2000-02)
- Module ngx_http_rewrite_module, nginx
- Module ngx_http_ssl_module, nginx
- Troubleshoot your Application Load Balancers, AWS Documentation
- Error 520, Cloudflare Docs
- Error 521, Cloudflare Docs
- Error 522, Cloudflare Docs
- Error 523, Cloudflare Docs
- Error 524, Cloudflare Docs
- Error 525, Cloudflare Docs
- Error 526, Cloudflare Docs
- Error 530, Cloudflare Docs
- RFC 2324: Hyper Text Coffee Pot Control Protocol (HTCPCP/1.0), IETF (1998-04-01)