failover.io
  1. Home
  2. Cloudflare errors

Cloudflare 5xx errors explained

When Cloudflare shows a 52x error, the problem is almost always between Cloudflare and your origin server. Find your code below.

CodeWhat happenedLook at first
520Origin sent an empty or malformed responseApp crashes, oversized headers
521Origin refused the connectionWeb server stopped, firewall blocking Cloudflare
522Connection to the origin timed outFirewall dropping packets, overloaded server, wrong DNS
524Origin connected but sent nothing back for 125 sSlow queries, long running requests
525TLS handshake with the origin failedNo certificate on 443, cipher mismatch
526Origin certificate is invalidExpired, self-signed or wrong hostname in Full (strict)

All Cloudflare error guides