Skip to content
5xx · Server Error

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.

Check it with Sitewell

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

Related guides