521 Web Server Is Down
A Cloudflare error meaning the origin server refused the connection.
What it means
HTTP 521 is a non-standard Cloudflare status returned when Cloudflare cannot establish a connection to the origin server because the origin actively refused it. The edge is healthy; the server behind it is down or is rejecting connections from Cloudflare.
When it happens
It happens when the origin web server has crashed or been stopped, when its firewall or security rules block Cloudflare's IP ranges, or when the service is not listening on the expected port.
How to fix it
- Confirm the origin web server is running and listening on the correct port.
- Whitelist Cloudflare's IP ranges in the origin firewall and any security software.
- Restart the web server if it has crashed.
- Check that the DNS record points to the correct origin IP address.
SEO impact
Damaging if sustained. Crawlers see a server error and cannot index the page. A down origin behind Cloudflare needs fixing quickly to avoid crawl-rate and ranking loss.
Find out which of your URLs return 521
Paste a list of URLs and Sitewell checks the status code of every one at once — free and without signup.
Related codes
A generic error meaning the server encountered an unexpected condition.
501 Not ImplementedThe server does not support the functionality required to fulfil the request.
502 Bad GatewayA server acting as a gateway received an invalid response from the upstream server.
503 Service UnavailableThe server is temporarily unable to handle the request, often due to overload or maintenance.
504 Gateway TimeoutA gateway server did not receive a timely response from the upstream server.
505 HTTP Version Not SupportedThe server does not support the HTTP protocol version used in the request.
Related guides
A plain-English primer on HTTP status codes for SEOs: what the 2xx, 3xx, 4xx, and 5xx families mean, which ones affect rankings, and the codes worth knowing.
How to find and fix broken linksA practical walkthrough for finding broken links on your site, working out why each one breaks, and fixing them so visitors and crawlers stop hitting dead ends.