HTTP 5xx

520 Web Server Returned an Unknown Error

A Cloudflare-specific code: the origin returned an empty, unknown, or unexpected response.

5xx Server error

What causes it

  • The origin crashed, reset the connection, or returned a malformed response Cloudflare could not interpret.

How to fix it

Check the origin server logs for crashes or timeouts, and confirm it returns a valid HTTP response.

Example response

A typical raw HTTP response a client receives for a 520, with the headers this code is defined around.

HTTP/1.1 520 Web Server Returned an Unknown Error
Content-Type: text/html; charset=utf-8

Know before your visitors do.

Sentinel checks your site around the clock from multiple regions and alerts you the moment it starts returning a 5xx error, so you can fix it before it costs you.