Skip to main content

HTTP Status and Error Codes Reference

Learning Focus

A glossary of Cloudflare-specific error codes and their common resolutions.

Cloudflare 5xx Errors (The 52x Series)

Unlike standard 500 errors, Cloudflare's 520-527 codes specifically identify issues in the connection between the Cloudflare Edge and your Origin Server.

ErrorNameQuick MeaningFix
520Unknown ErrorOrigin returned something Cloudflare didn't understandCheck for server crashes or header overflows
521Web Server Is DownOrigin refused the connectionEnsure web server is running and port is open
522Connection Timed OutTCP handshake timed out (15s)Whitelist Cloudflare IPs in firewall
523Origin Is UnreachableOrigin IP is not routable or downUpdate DNS record or check origin connectivity
524A Timeout OccurredResponse took >100 secondsOptimize slow queries/scripts
525SSL Handshake FailedSSL handshake between CF and Origin failedCheck origin SSL config and TLS version
526Invalid SSL CertificateOrigin SSL cert is expired/invalid (Full Strict)Install valid cert or use Origin CA
527Railgun ErrorIssue with the Railgun optimizer(Legacy) Check Railgun listener

Cloudflare 1xxx Errors

These errors occur when the request cannot be processed by the Cloudflare Edge itself.

ErrorNameMeaning
1000DNS Points to Prohibited IPRecord points to a private IP (e.g. 192.168.x.x)
1001DNS Resolution ErrorDNS record doesn't exist or is invalid
1015Rate LimitedYou hit a rate limit (WAF, Bot, or Global)
1016Origin DNS ErrorCloudflare cannot resolve the IP of your CNAME origin
1020Access DeniedBlocked by a WAF rule, Firewall rule, or IP access rule
1101Worker ExceptionJavaScript error in your Workers code
1102Worker CPU LimitWorker script used too much CPU time

Standard HTTP Codes (As handled by Cloudflare)

CodeMeaningCloudflare Behavior
301Permanent RedirectCached by default. Followed by Cloudflare if origin sends it.
403ForbiddenCloudflare or Origin blocked access. Check Firewall logs.
404Not FoundNot cached by default (unless Cache Rule specifies).
429Too Many RequestsCloudflare is rate limiting the user.
503Service UnavailableOrigin is overloaded.

Key Takeaways

  • 521/522 are the most common and usually indicate a firewall issue.
  • 524 is almost always a performance issue on the origin.
  • 1101/1102 are exclusively Worker-related.
  • For all 5xx errors, check the Data Center code at the bottom of the page to see if it's localized.

What's Next

  • This concludes the Cloudflare Platform Documentation. See the Cloudflare Status Page for real-time network updates.