WebmasterID logoWebmasterID
Crawl diagnostics

Cloudflare 520 (Unknown Error)

HTTP 520 is a Cloudflare-specific status code, not part of any IANA/RFC standard. Cloudflare returns 520 when the origin server returns an empty, unknown, or otherwise unexpected response that Cloudflare cannot interpret. It is a catch-all for connection issues between Cloudflare and the origin, and it points to the origin or the connection, not to Cloudflare itself.

Verified against primary sources

What 520 means (Cloudflare-specific)

520 is not an IANA-registered HTTP status code. It is one of Cloudflare's own 52x range of errors. Cloudflare documents 520 as 'Web server returns an unknown error' — the edge made a connection to the origin but received an empty, unknown, or unexpected response it could not serve to the visitor.

Because it is a catch-all, 520 covers several underlying causes: the origin dropping the connection, returning malformed headers, sending an empty reply, or crashing mid-response.

How to diagnose it

The defining clue is that 520 points at the origin or the edge-to-origin connection, not at Cloudflare's network. The standard first step is to request the origin directly (bypassing Cloudflare) to see whether it returns a clean response. If the origin misbehaves on its own, the fix is there.

Common contributors include the origin web server crashing or restarting, exceeding header-size limits, sending too many or oversized cookies, or empty responses from a failing application. Reviewing origin error logs alongside the timing of the 520s usually isolates the cause.

How it appears in analytics and logs

A 520 from Cloudflare means the edge could not make sense of the origin's reply — empty response, dropped connection, or malformed headers. To crawlers it is a 5xx-style failure, so affected URLs are not indexed while it persists.

Diagnostic use case

Diagnose intermittent 520s by testing the origin directly, since the error indicates Cloudflare received a response it could not understand from your server.

What WebmasterID can help detect

WebmasterID surfaces the status codes crawlers receive at the edge, helping you spot Cloudflare 520s on pages that should be returning healthy 200s.

Common mistakes

Privacy and accuracy notes

A 520 is an edge-to-origin status with no personal data. WebmasterID records the status crawlers received without linking it to a visitor identity.

Frequently asked questions

Is 520 a standard HTTP status code?
No. 520 is specific to Cloudflare's 52x error range and is not registered with IANA. It indicates the origin returned an empty or unexpected response that Cloudflare could not interpret.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.