What does HTTP status 522 (Connection Timed Out) mean?

 
Previous Next
HTTP_STATUS_SERVER_IS_DOWN HTTP_STATUS_ORIGIN_IS_UNREACHABLE

HTTP_STATUS_CONNECTION_TIMED_OUT

The error concerns the network connection between Cloudflare and the origin, not a browser-to-Cloudflare timeout. It can result from an overloaded origin, packet loss, routing problems, or a firewall silently dropping connections.

Check origin reachability from outside the private network, connection limits, firewall rules, and TCP-level telemetry. Cloudflare identifies 52x values as origin connectivity errors in its diagnostic headers.

Cloudflare: 5xx errors

Operational meaning of HTTP 522 for HTTP_STATUS_CONNECTION_TIMED_OUT

HTTP 522 (HTTP_STATUS_CONNECTION_TIMED_OUT) is a server-error response. AllStat records its meaning as “522 Connection Timed Out”. For HTTP_STATUS_CONNECTION_TIMED_OUT, interpret it with the request method, selected representation, response headers, and the specification or product that defines the code; the number alone does not prove that application work completed.

Client and server handling for HTTP_STATUS_CONNECTION_TIMED_OUT

  • Correlate HTTP_STATUS_CONNECTION_TIMED_OUT with origin, gateway, load-balancer, and dependency logs to locate which hop generated it.
  • For HTTP_STATUS_CONNECTION_TIMED_OUT, record request and trace identifiers, upstream timing, retry count, and the health of the selected backend.
  • For HTTP_STATUS_CONNECTION_TIMED_OUT, use bounded retries with backoff only for idempotent work and only when the service policy permits them.

For telemetry, record HTTP 522, method, authority, route template rather than secrets, response headers relevant to caching or retry, latency, upstream identity, and whether the response originated at the application or an intermediary.


Looking for a different code? Search another status or error code.