Skip to content
ferkesh.HOSTING

How to Tell Cloudflare Error 521 From Error 522

Workflow: Capture context; Compare refusal and timeout; Check approved access; Confirm recovery.

Cloudflare’s 521 and 522 suggest different connection failure patterns. Keep the exact code as the starting point and verify which backend was expected to answer.

Procedure

  1. Capture context. Record the affected hostname, error, time and Ray ID. Check whether all hostnames or just one origin behind a pool are affected.
  2. Compare refusal and timeout. For 521, inspect whether the intended service is running and accepting that connection. For 522, review connectivity, load and timing with the host for the authorized route.
  3. Check approved access. Review the scoped firewall and proxy allowlist against the provider’s documented requirements. Change only the agreed listener or rule when the evidence identifies the blocking layer.
  4. Confirm recovery. Retest the same public route and representative backends. Compare response timing and logs, and include the Ray ID when escalating a repeatable failure.

Official references

Ferkesh Hosting. Last reviewed .

Was this helpful?

Thanks for your feedback!

Still Need Help?

The support team is here around the clock for anything you can't find in the knowledge base.