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 range | Usually means | Who needs to fix it |
|---|---|---|
| 52x (520 to 527) | Cloudflare can’t get a proper answer from the website’s server | The website’s host (us, if we host your site) |
| 1xxx (such as 1020) | Cloudflare blocked or restricted the request | Usually the website owner’s settings |
| 500, 502, 503, 504 | Often passed through from the website’s server | Usually 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.
| Error | Name | What it means in plain English | Common causes |
|---|---|---|---|
| 520 | Web server returned an unknown error | The server sent back something empty or unexpected | A crashed app, a server error, very large headers |
| 521 | Web server is down | The server refused to talk to Cloudflare | The server or web service is stopped, or a firewall is blocking Cloudflare |
| 522 | Connection timed out | Cloudflare couldn’t reach the server in time | The server is overloaded, offline, or the address in DNS is wrong |
| 523 | Origin is unreachable | Cloudflare can’t find a route to the server | Wrong DNS record, or the server’s network is down |
| 524 | A timeout occurred | The server accepted the connection but took too long to answer | A slow page, report or import that runs too long |
| 525 | SSL handshake failed | Cloudflare and the server couldn’t agree on a secure connection | SSL misconfigured on the server |
| 526 | Invalid SSL certificate | The server’s certificate is expired or doesn’t match | An expired or wrong certificate on the server |
| 527 | Railgun error | A legacy connection feature failed | Rare 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.
| Error | What it means | What to do |
|---|---|---|
| 1020 Access denied | The 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 banned | The site doesn’t accept visitors from your location | Check whether a VPN is changing your location |
| 1006, 1007, 1008 Your IP address has been banned | Your internet address is blocked | Try another network; report it if you’re a genuine visitor |
| 1010 Browser signature banned | Your browser looks like an automated tool | Try a normal, up-to-date browser without unusual extensions |
| 1015 You are being rate limited | Too many requests in a short time | Wait a few minutes, then try again more slowly |
| 1016 Origin DNS error | Cloudflare can’t find the website’s server in DNS | A DNS problem the website owner needs to fix |
If You’re a Visitor#
- Check the three boxes on the error page to see where the problem is.
- If it’s the host (52x errors), wait a few minutes and try again. The site’s owner usually needs to fix it.
- If you’ve been blocked (1xxx errors), try turning off your VPN, using a different browser, or switching networks.
- 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:
- Note the error number and the Ray ID (bottom of the page).
- Check whether it affects every page or just one, and every device or just yours.
- 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.