HTTP
HTTP status codes reference What 1xx–5xx codes mean, including Cloudflare errors 520–526, and what a site owner should do.
1xx — informational 100 Continue
The server received the headers and is waiting for the request body. Browsers rarely show it; nothing to do.
101 Switching Protocols
The server switches protocols, usually to WebSocket. Normal for chats and live updates.
103 Early Hints
Early hints: the server tells the browser which files to preload. It speeds the page up.
2xx — success 200 OK
All good: the page was found and returned. Every working page should answer this way.
201 Created
Created: the request succeeded and created a new resource. A typical API answer to POST.
202 Accepted
Accepted: the server will process the request later. Check the outcome separately.
204 No Content
Success with no content. Normal for APIs; for a regular page it is a misconfiguration.
206 Partial Content
Part of a file was returned. Used for resumable downloads and video; nothing to do.
3xx — redirects 301 Moved Permanently
Permanent redirect: the page moved for good. Search engines pass ranking to the new URL. Use it for migrations and www/https consolidation.
302 Found
Temporary redirect. Search engines keep the old URL indexed. If the move is permanent, switch to 301.
303 See Other
Go to another URL with GET. Usually after a form submission.
304 Not Modified
Not modified: the browser may use its cached copy. Saves traffic; this is normal.
307 Temporary Redirect
Temporary redirect that keeps the method (POST stays POST). For a permanent move use 308 or 301.
308 Permanent Redirect
Permanent redirect that keeps the method. The 301 counterpart for APIs and forms.
4xx — client errors 400 Bad Request
Bad request: the server could not understand it. Check the URL, parameters, cookies, and header size.
401 Unauthorized
Authentication required: sign in or send a token. On a public page it is a misconfiguration.
403 Forbidden
Forbidden: the server understood the request but refuses it. Causes include file permissions, bot protection, or IP/country blocking.
404 Not Found
Page not found. Redirect removed pages with 301 to close matches and fix broken links.
405 Method Not Allowed
Method not allowed: for example, POST to a page that only accepts GET.
408 Request Timeout
The server stopped waiting for the request. Happens on slow connections or under load.
409 Conflict
Conflict: the request clashes with the current state (for example, creating the same object twice).
410 Gone
Gone for good. Search engines drop such pages faster than 404s.
413 Content Too Large
Request too large: the file or body exceeds the server limit (client_max_body_size in nginx).
414 URI Too Long
URL too long. Often caused by endless parameters or redirect loops.
415 Unsupported Media Type
Unsupported media type: check the Content-Type request header.
418 I'm a teapot
The joke "I'm a teapot" code. Some sites send it to bots instead of a refusal.
422 Unprocessable Content
The data is understood but invalid, such as form validation errors. A typical API answer for field checks.
429 Too Many Requests
Too many requests: a rate limit was hit. Wait for the time in the Retry-After header.
451 Unavailable For Legal Reasons
Unavailable for legal reasons: the page is blocked by law or court order.
5xx — server errors 500 Internal Server Error
Internal server error: the site crashed while handling the request. Check the application error log.
501 Not Implemented
The server cannot perform this kind of request (method not implemented).
502 Bad Gateway
Bad gateway: nginx or the CDN got no proper answer from the application. Check that PHP-FPM, Node, or the container is running.
503 Service Unavailable
Service temporarily unavailable: overload or maintenance. During maintenance return 503 with Retry-After so search engines wait.
504 Gateway Timeout
The gateway gave up waiting for the application. Look for slow database or external calls and check timeouts.
505 HTTP Version Not Supported
The server does not support the HTTP version of the request.
507 Insufficient Storage
The server ran out of storage to complete the request.
520 Web Server Returned an Unknown Error
Cloudflare: the origin returned an empty or unknown response. Check the web server logs.
521 Web Server Is Down
Cloudflare: the origin refuses connections — the web server is down or blocks Cloudflare IPs.
522 Connection Timed Out
Cloudflare: could not connect to the origin in time. The server is overloaded or a firewall drops connections.
523 Origin Is Unreachable
Cloudflare: the origin is unreachable over the network. Check the IP in your Cloudflare DNS records.
524 A Timeout Occurred
Cloudflare: the origin accepted the connection but did not answer within 100 seconds. Speed up long tasks or move them to the background.
525 SSL Handshake Failed
Cloudflare: TLS with the origin failed. Check SSL on the server and the Full/Strict mode.
526 Invalid SSL Certificate
Cloudflare: the origin certificate is invalid in Full (strict) mode. Renew the certificate.
Which code does your site return?
Check the site from different cities and see the response code and time.
Check a website The reference explains HTTP status codes from 1xx to 5xx, including Cloudflare codes 520–526, and tells a site owner what to do in each case.
How to read the result The first digit sets the class: 2xx success, 3xx redirect, 4xx request or access error, 5xx server failure. For search engines 200, 301, 404, 410, and 503 matter most.
What to check 1 Serve removed pages with 410 or redirect them with 301 to close matches. 2 During maintenance return 503 with a Retry-After header. 3 Watch 5xx errors with monitoring — visitors and robots both see them. Common questions How is 404 different from 410? ⌄ 404 means the page is missing, perhaps temporarily. 410 means it is gone for good, and search engines drop it faster.
What does 502 Bad Gateway mean? ⌄ A proxy such as nginx or a CDN got no proper answer from the application. Check that PHP-FPM, Node, or the container is running and read its logs.
Related tools