All error codes / Cloudflare errors (52x)

520 Web Server Returned an Unknown Error – what does it mean?

Cloudflare received an empty, unexpected or invalid answer from the website’s server.

Usually caused by: the website

What does 520 Web Server Returned an Unknown Error mean?

520 is a catch-all code from Cloudflare: the connection to the origin server worked, but its answer was unusable. The server dropped the connection in the middle of the answer, sent an empty response or delivered headers Cloudflare cannot process – for example because they are too large.

Cloudflare itself works in this case. The problem is behind Cloudflare.

Is it me or the website?

It is the website’s server.

What you can do as a visitor

  • Reload after a few minutes.
  • Delete the site’s cookies – a lot of cookies can make the response too large.
  • If it persists, only the owner can fix it.

What you can do as the site owner

  • Check the origin server’s error logs at the time of the report.
  • Does the application crash or get restarted?
  • Check the size of the response headers, especially cookies being set.
  • Test the server directly at its IP address, bypassing Cloudflare.

All error codes