Cloudflare: the origin returned an empty, unknown or unexpected response.
Cloudflare returns 520 when it connected to your origin but the response was something it could not use: an empty reply, a connection reset after the request, headers that are invalid or too large, or a protocol violation. It is a catch-all for origin-side misbehaviour.
curl --resolve example.com:443:<origin-ip>).| Header | Role |
|---|---|
CF-RAY | Request ID to give to the site owner or Cloudflare support. |
HTTP/1.1 520
Server: cloudflare
CF-RAY: 8e1f2a3b4c5d6e7f-FRA
Content-Type: text/html