HTTP 5xx

522 Connection Timed Out

A Cloudflare-specific code: the TCP connection to your origin timed out.

5xx Server error

What causes it

  • An overloaded origin, a firewall dropping packets, or network issues between Cloudflare and the origin.

How to fix it

Check origin load and firewall rules, and confirm the origin responds within the timeout.

Example response

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

HTTP/1.1 522 Connection Timed Out
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.