Cloudflare Error Codes

When something goes wrong with a website that sits behind Cloudflare, you’ll see a Cloudflare error page instead of the site. The number on the page tells you a lot about where the problem is.

Most Cloudflare error pages show three boxes: your browser, Cloudflare and the host (the website’s server). A green tick means that part is working; a red cross shows where the problem is.

Where Is the Problem?#

Error rangeUsually meansWho needs to fix it
52x (520 to 527)Cloudflare can’t get a proper answer from the website’s serverThe website’s host (us, if we host your site)
1xxx (such as 1020)Cloudflare blocked or restricted the requestUsually the website owner’s settings
500, 502, 503, 504Often passed through from the website’s serverUsually the website’s host

If you’re a visitor and the error shows the problem is at the host, there’s nothing wrong with your computer. Try again in a few minutes.

The Common 52x Errors#

These mean Cloudflare is working, but the website’s server isn’t responding properly. See Cloudflare’s 5xx error guide for full technical detail.

ErrorNameWhat it means in plain EnglishCommon causes
520Web server returned an unknown errorThe server sent back something empty or unexpectedA crashed app, a server error, very large headers
521Web server is downThe server refused to talk to CloudflareThe server or web service is stopped, or a firewall is blocking Cloudflare
522Connection timed outCloudflare couldn’t reach the server in timeThe server is overloaded, offline, or the address in DNS is wrong
523Origin is unreachableCloudflare can’t find a route to the serverWrong DNS record, or the server’s network is down
524A timeout occurredThe server accepted the connection but took too long to answerA slow page, report or import that runs too long
525SSL handshake failedCloudflare and the server couldn’t agree on a secure connectionSSL misconfigured on the server
526Invalid SSL certificateThe server’s certificate is expired or doesn’t matchAn expired or wrong certificate on the server
527Railgun errorA legacy connection feature failedRare today

The Common 1xxx Errors#

These mean Cloudflare deliberately stopped the request, usually because of a security rule. Cloudflare keeps a full list of 1xxx errors.

ErrorWhat it meansWhat to do
1020 Access deniedThe request matched a firewall rule. Cloudflare describes it as access denied by a Cloudflare firewall rule.Send the site owner a screenshot with the Ray ID
1009 Country or region bannedThe site doesn’t accept visitors from your locationCheck whether a VPN is changing your location
1006, 1007, 1008 Your IP address has been bannedYour internet address is blockedTry another network; report it if you’re a genuine visitor
1010 Browser signature bannedYour browser looks like an automated toolTry a normal, up-to-date browser without unusual extensions
1015 You are being rate limitedToo many requests in a short timeWait a few minutes, then try again more slowly
1016 Origin DNS errorCloudflare can’t find the website’s server in DNSA DNS problem the website owner needs to fix

If You’re a Visitor#

  1. Check the three boxes on the error page to see where the problem is.
  2. If it’s the host (52x errors), wait a few minutes and try again. The site’s owner usually needs to fix it.
  3. If you’ve been blocked (1xxx errors), try turning off your VPN, using a different browser, or switching networks.
  4. Still stuck? Send the website owner a screenshot that includes the Ray ID.

If It’s Your Website#

If we host your site and you see a Cloudflare error:

  1. Note the error number and the Ray ID (bottom of the page).
  2. Check whether it affects every page or just one, and every device or just yours.
  3. Send us the details. The Ray ID lets us trace the exact request in Cloudflare.

Our Website Down Checklist walks through the wider checks if the whole site is unavailable.

What Is a Ray ID?#

A Ray ID is a unique code Cloudflare gives every request, shown at the bottom of error and check pages, for example Ray ID: 8f2a1b3c4d5e6f70. It’s the fastest way for us to find exactly what happened, when, and why. Always include it when you report a problem.

Last updated 22 November 2026