HTTP status code
Web Server Is Down
Cloudflare-specific: the origin refused the connection.
Cloudflare tried to open a connection to your origin and was actively refused. This is one of the least ambiguous codes there is: either nothing is listening on that port, or something is blocking Cloudflare before it gets there.
Check the web server is running. If it is, the cause is almost certainly firewall rules — Cloudflare publishes its IP ranges and they must be allowed inbound on 80 and 443. Automated banning tools are a frequent culprit: they see a lot of traffic from a Cloudflare IP and ban it, taking your whole site offline.
A 521 is a total outage. If your monitoring checks the origin directly rather than through Cloudflare, it can pass while every real visitor sees an error — monitor the public hostname, not just the origin.
Monitor for 521 responses freeYour origin server actively refused Cloudflare's connection. The web server is either not running or a firewall is blocking Cloudflare's IPs.
A ban list is the usual answer. Tools like fail2ban can ban a Cloudflare IP after what looks like suspicious traffic, and because all your traffic arrives through those IPs, the whole site goes dark at once.
Pingura checks your endpoints from five regions and alerts on the status code, not just reachability.
Get Started Free