HTTP status codes
No results found
1xx: Informational
Interim responses sent before the final response. The browser handles them in the background, and users rarely see them.
- 100 Continue
-
The server received the request headers, and the client may go on to send the request body. Sent in reply to an Expect: 100-continue header, usually before a large upload.
- 101 Switching Protocols
-
The server agrees to the client request to switch to another protocol on the same connection. The common use is opening a WebSocket connection.
- 102 Processing
-
The server received the request and is still working on it, and no final response has been sent yet. Defined for WebDAV and rarely used today.
- 103 Early Hints
-
An early response sent ahead of the final one, with Link headers, so the browser can start loading resources such as CSS and JavaScript files sooner.
2xx: Success
The request was received, understood, and carried out.
- 200 OK
-
The request succeeded. For GET the body holds the requested resource, and for POST it holds the result of the action.
What to check: An error or "not found" page returned with 200 is called a soft 404, and search engines may index it. A page that does not exist should return 404 or 410.
- 201 Created
-
The request succeeded and a new resource was created, usually after a POST or PUT request.
What to check: In an API, the response should include a Location header with the address of the new resource.
- 202 Accepted
-
The request was accepted for processing, but processing has not finished and may still fail. Used for long tasks that run in the background, such as data exports.
- 203 Non-Authoritative Information
-
The request succeeded, but an intermediate proxy changed the content it received from the origin server.
- 204 No Content
-
The request succeeded, and there is no content to return in the body. Common for DELETE requests and for saving data through an API.
What to check: A 204 response cannot have a body. Client code that tries to read JSON from such a response will fail.
- 205 Reset Content
-
The request succeeded, and the client is asked to reset its view, such as clearing a submitted form.
- 206 Partial Content
-
The server returns only part of the resource, as asked in the Range header of the request. Used to resume broken downloads and to stream video.
- 207 Multi-Status
-
A WebDAV response holding several separate status codes, one for each resource the action applied to.
- 208 Already Reported
-
Used in WebDAV inside a 207 response to mark a resource already reported earlier in the same response, so it is not repeated.
- 226 IM Used
-
The server returned only the differences between the version the client holds and the current one (delta encoding), not the whole resource. Very rarely used.
3xx: Redirection
The client has to take another step, usually going to another address given in the Location header.
- 300 Multiple Choices
-
The requested resource has several representations, such as different languages or formats, and the client may choose between them. Rarely used.
- 301 Moved Permanently
-
The resource has moved permanently to a new address, given in the Location header. Search engines pass the ranking on to the new address, and browsers cache the redirect.
What to check: Make sure the redirect leads straight to the final address, without a chain of redirects and without a loop. Browsers cache a permanent redirect, so after changing one, test it in a private window.
- 302 Found
-
A temporary redirect to another address, given in the Location header. The original address stays the permanent address of the resource.
What to check: A permanent move should use 301, not 302, or search engines may keep showing the old address. Many browsers turn a POST into a GET on a 302, so use 307 to keep the request method.
- 303 See Other
-
A redirect to another address that must be fetched with GET. Common after a form is submitted, so that reloading the page does not submit the form again.
- 304 Not Modified
-
The resource has not changed since the version in the browser cache, so the server does not send it again. Sent in reply to a request with If-Modified-Since or If-None-Match headers.
What to check: This is normal and saves traffic. If a changed file does not show on the site, check the ETag and Last-Modified headers and the cache settings, including the CDN cache.
- 305 Use Proxy
-
Told the client to reach the resource through a proxy. It was deprecated for security reasons, and browsers ignore it.
- 306 (Unused)
-
Used in an early draft of the standard and no longer in use. It is reserved and must not be used.
- 307 Temporary Redirect
-
A temporary redirect to another address, like 302, but the client must repeat the request with the same method and body, so a POST stays a POST.
What to check: Browser developer tools sometimes show a 307 when the browser itself moves from HTTP to HTTPS because of HSTS, without contacting the server. In that case the redirect does not come from the server.
- 308 Permanent Redirect
-
A permanent redirect to a new address, like 301, but the client must keep the request method and body.
What to check: Search engines treat 308 like 301. For a permanent move of an API address that receives POST requests, prefer 308, since some clients turn the request into a GET on a 301.
4xx: Client errors
The problem is in the request itself: a wrong address, missing permission, invalid data, or an exceeded limit.
- 400 Bad Request
-
The server cannot process the request because it is malformed, for example invalid syntax, missing data, or broken headers.
What to check: Broken or oversized cookies are a common cause, so clearing the site cookies in the browser often solves it. In an API, check that the body is valid JSON and that all required fields are sent.
- 401 Unauthorized
-
The request needs authentication, and the client sent no credentials or wrong ones. Despite the name, it is about authentication, not authorization.
What to check: Check the username and password, the validity of the token or API key, and that the Authorization header actually reaches the application and is not stripped by a proxy or the server configuration.
- 402 Payment Required
-
Reserved for future use in digital payments, and its behavior is not defined by the standard. Some services return it when payment is required or a subscription has lapsed.
- 403 Forbidden
-
The server understood the request but refuses to carry it out. Unlike 401, logging in again will not change the result.
What to check: File and folder permissions (usually 644 for files and 755 for folders), a blocking rule in .htaccess, a block by a web application firewall (WAF), a block by IP address or country, or a folder with no index file while directory listing is off.
- 404 Not Found
-
The server found nothing at the requested address. The code does not say whether the resource was removed permanently or temporarily.
What to check: A typo in the address, a page deleted or moved without a 301 redirect, a difference in letter case in the file name (it matters on Linux servers), or a missing .htaccess file, without which friendly URLs do not work.
- 405 Method Not Allowed
-
The request method, such as POST or DELETE, is not supported at this address. The response includes an Allow header listing the permitted methods.
What to check: A form posted to an address that accepts GET only, an API route defined for another method, or an HTTP-to-HTTPS redirect that turned a POST into a GET.
- 406 Not Acceptable
-
The server cannot return content in the format the client asked for in its Accept headers. Web application firewalls sometimes return it when they block a request.
- 407 Proxy Authentication Required
-
Like 401, but authentication is required by a proxy rather than by the server itself.
- 408 Request Timeout
-
The server closed the connection because the client did not finish sending the request in the allowed time.
What to check: A slow or unstable internet connection, a large upload that takes a long time, or a wait time that is too short in the server settings.
- 409 Conflict
-
The request conflicts with the current state of the resource, such as updating an outdated version or creating a record that already exists.
- 410 Gone
-
The resource was removed permanently and will not come back. Search engines drop such a page from their index sooner than a page returning 404.
- 411 Length Required
-
The request was sent without a Content-Length header, and the server requires one.
- 412 Precondition Failed
-
A condition sent in the request headers, such as If-Match or If-Unmodified-Since, is not met. Used to avoid overwriting changes made by another user.
- 413 Content Too Large
-
The request body is larger than the server allows. The code was formerly called Payload Too Large and Request Entity Too Large.
What to check: Usually an upload larger than allowed. Check the upload limits of the programming language (such as upload_max_filesize and post_max_size in PHP) and the request size limit of the web server. Cloudflare also limits the request size, by account type.
- 414 URI Too Long
-
The requested address is longer than the server allows. Usually caused by sending a lot of data in URL parameters instead of a POST body, or by a redirect loop that adds parameters each time.
- 415 Unsupported Media Type
-
The server does not support the format of the request body, as stated in the Content-Type header. Common in APIs when JSON is sent without a Content-Type: application/json header.
- 416 Range Not Satisfiable
-
The range asked for in the Range header is outside the size of the resource, for example when resuming the download of a file that changed or got shorter.
- 417 Expectation Failed
-
The server cannot meet the requirement sent in the Expect header of the request.
- 418 I'm a teapot
-
It comes from RFC 2324, an April Fools joke from 1998 in which a teapot refuses to brew coffee. It is not part of HTTP, and the IANA registry marks it as reserved and unused, but some sites return it to turn away bots.
- 421 Misdirected Request
-
The request reached a server that is not set up to answer for the requested domain. It happens with HTTP/2, where one connection serves several domains, for example when a shared SSL certificate does not match the server configuration.
- 422 Unprocessable Content
-
The request syntax is valid, but its data fails validation, such as an email address in the wrong format. Common in APIs and form submissions, and formerly called Unprocessable Entity.
- 423 Locked
-
The resource is locked and cannot be changed. Defined for WebDAV.
- 424 Failed Dependency
-
The action failed because another action it depends on failed. Defined for WebDAV.
- 425 Too Early
-
The server refuses to process a request sent as TLS 1.3 early data, because an attacker could send such a request again (replay).
- 426 Upgrade Required
-
The server refuses to carry out the request over the current protocol and asks the client to switch to another one, given in the Upgrade header.
- 428 Precondition Required
-
The server requires the request to be conditional, for example with an If-Match header, to avoid overwriting changes made by another user.
- 429 Too Many Requests
-
The client sent too many requests in a short time and exceeded the rate limit. The response may include a Retry-After header with the time to wait.
What to check: A script or plugin that calls the server very often, a bot or crawler, the rate limit of an external API, or a rate-limiting rule in Cloudflare or the firewall. Check the Retry-After header and wait before trying again.
- 431 Request Header Fields Too Large
-
The request headers are larger than the server allows, usually because of many or large cookies. Clearing the site cookies in the browser usually solves it.
- 451 Unavailable For Legal Reasons
-
Access to the resource is blocked for legal reasons, such as a court order or a demand by an authority. The number is a nod to the novel "Fahrenheit 451".
5xx: Server errors
The request is valid, but the server could not carry it out. The reason is usually in the server error log.
- 500 Internal Server Error
-
A general server-side error that does not fit a more specific code. The exact reason is in the server error log, not in the response.
What to check: A fatal error in the code, a wrong rule in .htaccess, wrong permissions on a file or folder, an exceeded memory limit, or a programming language version that does not suit the code. Check the server error log and the site error log.
- 501 Not Implemented
-
The server does not support the feature needed to carry out the request, such as a request method it does not know.
- 502 Bad Gateway
-
An intermediate server, such as a proxy, a load balancer, or a CDN, got an invalid response from the server behind it, or no response at all.
What to check: An application process (such as PHP or Node.js) that crashed, was closed in the middle of the request, or is not running, or a backend server that is overloaded or was restarted. Check the error logs of the web server and of the service.
- 503 Service Unavailable
-
The server cannot handle the request right now, because of load or maintenance. The state should be temporary, and the response may include a Retry-After header.
What to check: A site maintenance mode that was turned on and never turned off (for example after an interrupted update), exceeded resources such as the number of processes or memory, or a stopped service. Search engines read 503 as temporary and do not drop the page from their index in the short term.
- 504 Gateway Timeout
-
An intermediate server did not get a response in time from the server behind it.
What to check: A long-running script, such as an import, export, or backup, a slow database query, or a call to an external service that does not answer. Check the time limits (max_execution_time and the proxy time limits) and move long tasks to background processing.
- 505 HTTP Version Not Supported
-
The server does not support the HTTP version used in the request.
- 506 Variant Also Negotiates
-
A server configuration error: a variant chosen during content negotiation is itself set up to negotiate, which creates a loop.
- 507 Insufficient Storage
-
The server cannot store the data needed to carry out the request because there is not enough storage space. Defined for WebDAV.
- 508 Loop Detected
-
The server stopped the action because it found an infinite loop while processing. Defined for WebDAV. On shared hosting servers it is sometimes also returned when a site exceeds its allotted resource limits.
- 510 Not Extended
-
The request needs an HTTP extension that the server does not support. Its definition has been made obsolete, and it is hardly used.
- 511 Network Authentication Required
-
The client has to sign in to get network access. Sent by public wireless networks, such as those in hotels or airports, that show a login page before browsing.
Common non-standard codes
Codes that are not in the standard registry and are returned by specific software and services. The 52x codes come from Cloudflare when it has trouble talking to the website server.
- 499 Client Closed Request
-
The client closed the connection before the server finished preparing the response. The code is written to the nginx logs and is never actually sent to the client. Common when a user leaves the page or a proxy stops waiting.
Source: nginx
- 520 Web Server Returned an Unknown Error
-
Cloudflare got an empty, unexpected, or invalid response from the website server.
What to check: A crashed server process, response headers that are too large (for example many cookies), an empty response, or a server firewall closing connections from Cloudflare IP addresses. Check the server error log at the time of the fault.
Source: Cloudflare
- 521 Web Server Is Down
-
Cloudflare tried to connect to the website server, and the connection was refused.
What to check: The web server is not running, or a firewall on the server blocks Cloudflare IP addresses. Check that the service is running and that Cloudflare IP addresses are allowed.
Source: Cloudflare
- 522 Connection Timed Out
-
Cloudflare could not complete a TCP connection to the website server in the allowed time.
What to check: A wrong IP address in the Cloudflare DNS record, a heavily loaded server, or a firewall silently dropping packets from Cloudflare IP addresses.
Source: Cloudflare
- 523 Origin Is Unreachable
-
Cloudflare cannot reach the website server, usually because of a network routing problem or a wrong IP address in the DNS record.
What to check: Make sure the DNS records in Cloudflare point to the correct server IP address, especially after a server move.
Source: Cloudflare
- 524 A Timeout Occurred
-
Cloudflare connected to the website server, but the server did not respond within 100 seconds, the default time limit.
What to check: A long-running script, such as an import, export, or backup, or a slow database query. Long tasks should run in the background, for example from cron or a job queue, or through a subdomain that does not pass through the Cloudflare proxy.
Source: Cloudflare
- 525 SSL Handshake Failed
-
Cloudflare could not complete an SSL/TLS handshake with the website server.
What to check: No SSL certificate is installed on the server, the server does not listen on port 443, or the TLS versions or ciphers do not match. The error occurs in the Cloudflare Full and Full (strict) SSL modes.
Source: Cloudflare
- 526 Invalid SSL Certificate
-
In the Full (strict) SSL mode, Cloudflare could not validate the SSL certificate on the website server.
What to check: An expired certificate, a self-signed certificate, a certificate that does not cover the domain name, or a missing certificate chain. Renew or fix the certificate on the server, or install a Cloudflare Origin certificate on it.
Source: Cloudflare
Everything runs in your browser; nothing is sent or stored.
- Search by number, such as 404, by the start of a code, such as 5xx or 40x, or by a word.
- Filter the list by group, from 1xx to 5xx, or show only the non-standard codes.
- Common codes include a "What to check" section with practical troubleshooting tips.
- Non-standard codes show the service or software that returns them, such as Cloudflare or nginx.
- Click "Copy link" next to a code to copy a direct link to it.
What is an HTTP status code?
Every response a web server sends to a request from a browser or an app includes a 3-digit status code that indicates the result of the request. The first digit indicates the group: 1xx for informational responses, 2xx for success, 3xx for redirects, 4xx for errors in the request, and 5xx for server-side errors. The number comes with a short reason phrase, such as Not Found, but the software that receives the response relies on the number alone. Newer versions of the HTTP protocol do not send the reason phrase at all. The standard codes are listed in the IANA registry, and some services also return codes that are not registered in the standard.
How to check which code a page returns
In the browser, the Network tab in the developer tools (F12) shows the status code of each request in the Status column. In the terminal, the command curl -I https://example.com shows the status line and the response headers, and the -L option follows redirects and shows each step in the redirect chain. The curl -I command sends a HEAD request, and some sites respond to it differently than to a GET request. To check a GET request, use the command curl -s -o /dev/null -w "%{http_code}" https://example.com, which shows only the code.
HTTP status codes and SEO
Search engines treat the status code as information about the state of the page. A page that exists should return 200, a page that moved to a new address should return a permanent redirect, 301 or 308, and a page that was removed should return 404 or 410. During maintenance, the right code is 503, which indicates a temporary state and does not get the pages removed from the index in the short term. 5xx errors that last a long time can hurt the crawling and ranking of the site.
Our website and server monitoring service sends requests to your site's address and checks the status code the server returns.
HTTP status codes FAQ
What is the difference between 401 and 403?
The 401 code means that authentication is required, and the client, meaning the browser or the app, sent no credentials or sent wrong ones. The 403 code means that the server understood the request and refuses to carry it out, and authenticating again will not change the result. On websites, a 403 often comes from wrong file permissions or a blocking rule.
What is the difference between 301 and 302?
The 301 code indicates a permanent move, and search engines pass the ranking on to the new address. The 302 code indicates a temporary redirect, and the original address remains the permanent address of the page. The 308 code is the equivalent of 301 and the 307 code is the equivalent of 302, but both keep the request method, such as POST, after the redirect.
What is the difference between 404 and 410?
The 404 code means that the page was not found, without saying whether the removal is permanent or temporary. The 410 code means that the page was removed permanently, and search engines drop a page that returns 410 from the index sooner.
What do 52x errors mean?
The codes 520 to 526 are not part of the standard, and Cloudflare returns them when there is a problem with the connection between Cloudflare and the website server. The error usually points to a problem on the website server or in the settings of the connection to it. The list gives the common causes of each code from 520 to 526.
Why does a 500 error show no details?
The 500 code indicates a general server-side error, and the error response usually does not include the cause. The exact cause appears in the error log of the server or of the website, so search the log for the lines from the time the error occurred.