Cloudflare Status Codes
Showing 8 status codes
Cloudflare-specific HTTP status codes (520-527) are proprietary responses used by Cloudflare's CDN and security services to indicate problems communicating with origin servers. These codes help distinguish between issues in Cloudflare's infrastructure and problems with the origin server.
The most frequently encountered Cloudflare codes are 520 Web Server Returned an Unknown Error (origin returned an empty or malformed response), 521 Web Server Is Down (origin refused the connection), 522 Connection Timed Out (TCP connection to origin timed out), and 524 A Timeout Occurred (origin didn't return a timely HTTP response).
When troubleshooting Cloudflare errors, check the origin server's health, firewall settings, and Cloudflare IP allowlisting. Many Cloudflare errors indicate the origin server needs attention, not Cloudflare itself.
Cloudflare Status Codes FAQ
What causes Cloudflare Error 522?
Cloudflare Error 522 indicates a TCP connection timeout between Cloudflare and your origin server. Common causes include server overload, firewall blocking Cloudflare IPs, incorrect DNS settings, or the origin server being down. Check your server's availability and ensure Cloudflare IPs are allowlisted.
What does Cloudflare Error 520 mean?
Cloudflare Error 520 indicates the origin server returned an empty, unknown, or unexpected response. This often happens when the origin crashes, returns malformed headers, or the response exceeds size limits. Check your origin server logs and application errors.
How do I fix Cloudflare 521 Web Server Is Down?
Cloudflare 521 means the origin server refused the connection. Verify your origin server is running, check that it's listening on the correct ports (80/443), ensure Cloudflare IPs aren't blocked by your firewall, and confirm your Cloudflare DNS settings point to the correct origin IP.