HTTP 522 — Connection Timed Out
HTTP 522
Connection Timed Out
Cloudflare tried to open a connection to the origin server and never got a reply.
What 522 actually means
Another Cloudflare code rather than a real HTTP one. Where 521 is an active refusal, 522 is silence: Cloudflare sent a connection request to the origin and the TCP handshake never completed before the timeout. That pattern — packets going out and nothing coming back — points at a firewall dropping rather than rejecting traffic, a wrong IP address in DNS, or an origin so overloaded it cannot accept new connections.
Common causes
- A firewall silently dropping packets from Cloudflare instead of rejecting them
- The origin IP in Cloudflare's DNS pointing at the wrong or an old server
- The origin server overloaded and unable to accept new connections
- Network routing problems between Cloudflare and the origin
- The origin server's connection backlog full
- Keep-alives disabled at the origin, exhausting the port range under load
If you're just trying to view the page
- Reload after a minute or two; overload-related 522s often clear
- Nothing else — the failure is between Cloudflare and the site's server
- Report it with the Ray ID if it persists
If it's your site
- Check the origin firewall for DROP rules affecting Cloudflare IP ranges — dropping is what turns a 521 into a 522
- Verify the A/AAAA record in Cloudflare points at the correct current origin IP
- Look at server load, connection counts and the accept backlog on the origin
- Enable keep-alives at the origin; Cloudflare relies on them and disabling them causes intermittent 522s
- Test the origin directly from outside your network on the same port to confirm reachability
Reference
- Status code
- 522
- Reason phrase
- Connection Timed Out
- Category
- 5xx — Server Error
- Cacheable by default
- No
Common questions
- What does HTTP 522 mean?
- Cloudflare tried to open a connection to the origin server and never got a reply. Another Cloudflare code rather than a real HTTP one. Where 521 is an active refusal, 522 is silence: Cloudflare sent a connection request to the origin and the TCP handshake never completed before the timeout.
- How do I fix a 522 error?
- Reload after a minute or two; overload-related 522s often clear
- Is 522 a client error or a server error?
- 522 is in the 5xx range, which means server error. The request was acceptable but the server could not fulfil it, so retrying later can succeed.
Related pages
- 500 Internal Server Error Something went wrong on the server and it has no more specific code to describe
- 502 Bad Gateway A proxy or gateway reached the server behind it and got back a broken response,
- 503 Service Unavailable The server is temporarily unable to handle the request, usually because it is ov
- 504 Gateway Timeout A proxy or gateway waited for the server behind it and gave up before an answer
- 524 A Timeout Occurred Cloudflare connected to the origin successfully but the origin did not finish re
- 521 Web Server Is Down Cloudflare could not connect to the origin server because it refused the connect
- 520 Web Server Returned an Unknown Error Cloudflare reached the origin server but got back a response it could not make s
- 525 SSL Handshake Failed The TLS handshake between Cloudflare and the origin server failed.
- 526 Invalid SSL Certificate The origin server presented a TLS certificate that Cloudflare could not validate
- 530 Origin DNS Error A Cloudflare error shown alongside a 1xxx error code that carries the real expla
- 501 Not Implemented The server does not support the functionality needed to fulfil the request, usua
- 511 Network Authentication Required You need to log in to the network itself — this is a captive portal, not the sit