What does Cloudflare error 520 mean?
Cloudflare received an empty, malformed, or otherwise unexpected response from the origin.
Cloudflare · HTTP 520
Trace Cloudflare error 520 to an origin that closes a connection or returns an empty or malformed HTTP response. Compare edge headers with origin logs and test the origin directly.
Origin / Application
Paste a captured HTTP response or enter a status and headers. Only the status and response headers are sent; common credential headers are filtered first.
Diagnostic report
Error code / name
Fault domain
Origin / ApplicationCloudflare connected to the origin, but the origin closed the connection or returned a response that Cloudflare could not parse. Oversized headers, application crashes, and intermediary resets can all produce an unexpected response.
Cloudflare connected to the origin, but the origin closed the connection or returned a response that Cloudflare could not parse. Oversized headers, application crashes, and intermediary resets can all produce an unexpected response.
Client -> Cloudflare Edge -> TCP/TLS OK -> Origin sends empty or invalid HTTP response -> Xcurl -sS -v -I --connect-timeout 5 --max-time 20 --resolve example.com:443:ORIGIN_IP https://example.com/healthlocation / {
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_pass http://app;
}SteadyNode's multi-region HTTP checks record status and response headers, while Upstream Translator highlights unexpected origin responses before they become prolonged outages.
No credit card required.
Start for freeCloudflare received an empty, malformed, or otherwise unexpected response from the origin.
Yes. A firewall or proxy can reset an established connection; correlate the CF-Ray value with origin and network logs before changing rules.