Skip to content
5xx Server Error Not part of the HTTP standard

520 Web Server Returned an Unknown Error

Cloudflare-specific: the origin returned something Cloudflare could not interpret.

What causes it

  • The origin returned an empty response, or a response with too many headers.
  • The origin crashed mid-response, or reset the TCP connection.

How to fix it

  • Bypass Cloudflare (hit the origin IP directly with a `Host` header) to see the real response.
  • Check origin logs for a crash at the same timestamp; 520 is almost always an origin bug.

At a glance

Class
5xx Server Error
Reference
Cloudflare (non-standard)
Standardised
No — vendor extension
Retry the request?
Only if idempotent

Other 5xx server error codes

Back to the full HTTP status code reference