HTTP Errors

What Is Cloudflare Error 521? (Web Server Is Down)

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 code521 (Cloudflare)
MeaningWeb Server Is Down
Category5xx (Cloudflare edge)
Common causes (scraping)Origin down, origin blocking Cloudflare IPs, origin misconfig
Right responseFix the request / retry with backoff; for disguised blocks use a real-browser unblock

What a 521 Web Server Is Down means

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. In short, Cloudflare error 521 is Cloudflare couldn't open a connection to the origin server.

Why scrapers see 521

521 is origin-side — the site's server is down, blocking Cloudflare's IP ranges, or misconfigured. For scrapers it's mostly transient and not a personal block, though it can coincide with aggressive edge rules.

How to fix a 521 error

Retry with backoff — 521 usually resolves when the origin recovers, and there's nothing in your headers or IP to change because the failure is between Cloudflare and the origin. If you only get 521 through certain proxies, test directly to rule out a proxy issue. When you need reliable access to Cloudflare-fronted sites despite intermittent edge errors, Web Unblocker and WAF bypass handle the retries and challenges for you.

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.

0 terms · 0 connections
You are here · HTTP Errors
Building map…

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