HTTP status code · Cloudflare documentation (5xx errors)

522 Connection Timed Out (Cloudflare)

522 is a Cloudflare error: Cloudflare's connection to the origin server timed out before it was established.

What 522 means

Not a standard HTTP code. Cloudflare tried to open a TCP connection to the origin and got no answer in time. The origin is unreachable or too busy to accept connections, so it's an origin problem, not a Cloudflare outage.

Common causes

  • The origin server is offline or overloaded.
  • A firewall silently dropping Cloudflare's IP ranges.
  • A wrong origin IP in the DNS record.
  • Network problems between Cloudflare and the host.

How to fix 522

  • Check that the server is up and not out of CPU, memory or connections.
  • Allow Cloudflare's IP ranges.
  • Confirm the origin IP in Cloudflare's DNS settings.

How Uptenna treats 522

With the default expected status (200-399), a 522 counts as a failed check. Two failures in a row open an incident, and the alert says Got HTTP 522 (expected 2xx or 3xx). The first successful check resolves it and sends a recovery.

See Monitors for expected status codes, keywords and timeouts.

Frequently asked questions

What does HTTP 522 mean?

522 is a Cloudflare error: Cloudflare's connection to the origin server timed out before it was established.

Is 522 an error?

Yes, 522 is a server error: the problem is on the server's side (or something between the client and the server).

Does an uptime monitor treat 522 as down?

By default, yes: Uptenna counts anything outside 200-399 as a failed check and opens an incident after two failures in a row. You can change the expected status per monitor.

Related status codes

Find out the moment your site returns 522

Uptime checks, cron job heartbeats and a public status page, with an alert when something breaks. Free: 5 monitors checked every 5 minutes and email alerts. Pro ($9/month): checks every minute, Slack, Discord, Telegram and webhooks, SSL expiry warnings.

  • No card required
  • Status page included
  • Email alerts included