HTTP 520 Web Server Returned an Unknown Error

Cloudflare received an empty, unknown or unexpected response from the origin server.

Updated

520
Web Server Returned an Unknown Error
5xx Server error
Class
Cloudflare (non-standard)
Defined in

What does HTTP 520 mean?

Cloudflare received an empty, unknown or unexpected response from the origin server. A Cloudflare-specific catch-all: the origin reset the connection, sent headers that are too large or returned an empty reply.

5xx Server error: The request looked valid, but the server failed to fulfil it. The fix is on the server side.

Common causes of a 520 error

  • Origin crashed or closed the connection.
  • Response headers larger than Cloudflare allows (32 KB).
  • Firewall on the origin blocking Cloudflare IPs.

How to fix 520 Web Server Returned an Unknown Error

  • Check origin server logs at the time of the error.
  • Allow Cloudflare’s IP ranges in the origin firewall.

520 and SEO

Treated like a 5xx error by search engines.

Example response

HTTP/1.1 520 Web Server Returned an Unknown Error

Related status codes

Check which status code a URL returns with the HTTP header checker.

All HTTP status codesSearch the full list of status codes from 100 to 599 with their meanings and SEO impact.
Open the full list

Frequently asked questions

What does status code 520 mean?
520 Web Server Returned an Unknown Error: Cloudflare received an empty, unknown or unexpected response from the origin server.
How do I fix a 520 error?
Check origin server logs at the time of the error. Allow Cloudflare’s IP ranges in the origin firewall.
Does 520 affect SEO?
Treated like a 5xx error by search engines.