Non-standard, from Cloudflare: the TCP connection to the origin timed out before it was established.
Non-standard — not defined by any RFC. Vendor documentation: Cloudflare 5xx error reference
Overloaded origins that cannot accept new connections, firewalls silently dropping the CDN's packets, or routing problems between the CDN and the origin's network. It tends to cluster during traffic spikes.
Distinguish it from 524 in alerts: 522 is a network or capacity problem reaching the server, 524 is a server that accepted the connection and then took too long.
Retry with exponential backoff and jitter — a synchronised retry storm is exactly what keeps an overloaded origin from recovering. Set your own client timeout above the CDN's connect timeout, or you will record a client timeout instead of the 522.
1 endpoint in this playground answers with 522. Every one is free, needs no signup, and can be called from the browser or with curl.
GET https://funapi.dev/api/faults/v1/status/{code} — Return any status code on demand (200–599) (Fault Injection API) Open & run this endpointAll HTTP status codes · All 55 mock REST APIs · Getting started guide
Last updated