← All status codes
521

Web Server Down

Cloudflare-specific. The origin server refused the connection. Your server is down, firewalling Cloudflare's IPs, or not listening on the right port.

COMMON CAUSES

Origin server is down
Firewall blocking Cloudflare's IP ranges
Origin not listening on the expected port
Origin overloaded and refusing connections

HOW TO FIX IT

Check if your origin server is running
Allowlist Cloudflare's IP ranges in your firewall
Verify the origin is listening on the port configured in Cloudflare

What this means for monitoring

521 means your origin is unreachable from Cloudflare. If your direct-to-origin monitor is fine but Cloudflare gets 521, it's a firewall or IP allowlist issue.

Related status codes

5xx Server Error

Get alerted when your endpoints return unexpected status codes.

Larm checks your HTTP endpoints from multiple global locations and alerts you when they return status codes outside your expected range.