Skip to content
Free tool

520 Web Server Returned an Unknown Error (Cloudflare)

Cloudflare got an answer from your server that it couldn't understand.

Why it happens

  • The origin returned an empty or malformed response, or headers that were too large.
  • The origin reset the connection.

What to do

  • Check your origin server's logs; the problem is between Cloudflare and your server, not the visitor.

In monitoring

Counts as down. If two checks in a row see it, you're alerted with this code as the cause.

Catch the next 520 before a customer does.

heyUptime checks your site every 30 seconds, confirms a failure before alerting, and tells you the code and the likely reason.

Start watching free

All status codes · Not sure what your site returns right now? Check it.

Next time, be the first to know.

Let someone else watch the shop. If anything breaks, you will hear it from us, not from a customer.

Start your 14-day free trial No credit card needed