On this page
HTTP 521 Web Server Is Down (Cloudflare) means Cloudflare couldn't open a connection to the origin server. Cloudflare's edge couldn't open a connection to the origin server. Cloudflare itself is up, but the origin behind it refused or dropped the connection. You'll see Cloudflare's branded 521 page with a ray ID. It's also written “HTTP 521” or just “521 error” / “521 status code.”
Quick facts
| Status code | 521 (Cloudflare) |
|---|---|
| Meaning | Web Server Is Down |
| Category | 5xx (Cloudflare edge) |
| Common causes (scraping) | Origin down, origin blocking Cloudflare IPs, origin misconfig |
| Right response | Fix the request / retry with backoff; for disguised blocks use a real-browser unblock |
Related terms
Concept map
How Cloudflare Error 521 connects
The terms most directly tied to this one. Hover a node to see its neighbours, click to preview, drag to rearrange.
Tools & solutions for this topic
Frequently asked questions
Is 521 a client or server error?
It's a server-side (5xx) error — the problem is between servers, not in your request.
Does a 521 mean I'm blocked when scraping?
Not usually — 521 is typically transient/server-side, though it can coincide with edge blocking.
How do I fix a 521 error?
Cloudflare couldn't open a connection to the origin server is the cause, so the fix targets that. Retry with backoff and use reliable infrastructure.
What's the difference between Cloudflare 521 and 520?
520 is a generic 'unknown error' when the origin returns something Cloudflare can't interpret. 521 is specific: Cloudflare couldn't connect to the origin at all (it's down or refusing connections).
Last updated: 2026-05-28