A website refuses to load, and a Cloudflare error page takes its place. Should you refresh, check your device, or contact the website? The error number gives you a better starting point than the logo.
This guide explains common codes, shows which checks visitors can try, and helps website owners investigate the underlying problem.
What Does a Cloudflare Error Mean?
A Cloudflare error is an error message displayed while accessing a website through Cloudflare. It can indicate a problem with the hosting server, DNS, security settings, encrypted connections, or Cloudflare’s infrastructure.
Cloudflare acts as an intermediary between visitors and the origin server, the computer hosting the website. Its branding alone does not establish which system caused the failure. Read the code and its description together.
Common Cloudflare Error Codes and Causes
Use this table to choose your next troubleshooting step:
| Code | What it means |
|---|---|
| 520 | The origin supplied an unexpected or unusable response. |
| 521 | The origin refused Cloudflare’s connection. |
| 522 | Contacting the origin timed out. |
| 523 | The origin could not be reached. |
| 524 | Connection succeeded, but a read or write timed out. |
| 525 | The secure connection handshake failed. |
| 526 | The origin’s certificate could not be validated. |
| 1015 | Requests exceeded the website’s rate limit. |
| 1016 | Cloudflare could not resolve the origin’s DNS. |
| 1020 | A website security feature blocked the request. |
These codes describe different failures and require different fixes.
Four-digit codes are Cloudflare-specific messages rather than HTTP status codes. For example, error 1020 accompanies HTTP 403, while error 1015 uses HTTP 429. Use both numbers when searching logs or monitoring tools.
For example, a large report export could trigger error 524 while the homepage still loads normally. The connection works, but the operation takes too long.
How to Fix Cloudflare Errors as a Visitor
Start with the code rather than changing every browser setting:
- For 520–524 errors: wait briefly and retry once. Persistent failures generally need the website operator’s attention.
- For error 1015: stop repeatedly refreshing. Wait before trying again; rapid retries can extend the restriction.
- For verification loops: update your browser, allow JavaScript and required cookies, and temporarily disable extensions that interfere with the challenge.
- For possible network issues: test another connection or, where appropriate, temporarily disconnect your VPN. This can help isolate challenge failures.
Compare the same URL on your phone’s mobile data and your home connection. Matching 522 errors make an origin connectivity problem a stronger lead. A challenge that fails in just one browser points toward its settings or extensions.
If the problem continues, send the site owner the affected URL, error code, screenshot, and timestamp with timezone. Include the Ray ID, a request identifier shown on many error pages, when available.
What Website Owners Should Check
Before editing settings, compare the failure time with server logs and recent DNS, hosting, firewall, or certificate changes. Change one relevant setting at a time, retest the affected URL, and record the result.
Connection and timeout errors
For errors 521–523, confirm that your web service is running, DNS points to the correct server, and the origin is reachable. Ask your host to verify that its firewall allows Cloudflare’s current IP ranges.
For error 1016, check DNS records and whether CNAME targets resolve correctly.
For error 524, inspect slow database queries, resource usage, and lengthy application requests. Consider moving large exports into background jobs with progress polling.
Access blocks and SSL errors
For error 1020, use the Ray ID or client IP address to find the matching event in Security Events. Review the responsible security control and adjust it after confirming the request is legitimate.
For errors 525 and 526, check the origin’s HTTPS configuration, certificate expiry, hostname coverage, and certificate chain. Repair the configuration and retain strict certificate validation.
How to Check Whether Cloudflare Is Down
Check Cloudflare Status for incidents affecting the relevant service or location. Several unrelated websites failing simultaneously can suggest a wider incident, but that pattern alone does not prove the cause.
Compare the incident timing with your own errors. A clear status page does not rule out an isolated problem with your website or hosting provider.
Frequently Asked Questions
Does a Cloudflare error mean the website is down?
Sometimes. An origin connection failure can prevent access, while a security block may affect only particular requests or visitors. The code helps distinguish these situations.
Will clearing my cache fix a Cloudflare error?
It may help with browser data or challenge problems. It cannot repair an offline hosting server, incorrect origin DNS, or an invalid server certificate.
How do I resolve Cloudflare error 1020?
Visitors should send the website administrator a screenshot and Ray ID. The administrator can investigate the matching security event and review the rule responsible for blocking access.
How long do Cloudflare errors last?
There is no fixed duration. A temporary overload may clear quickly, while DNS, firewall, and certificate faults can persist until someone corrects them.
Conclusion: Start With the Error Code
A Cloudflare error becomes easier to troubleshoot once you identify the code and who controls the affected setting. Record the details, follow the relevant checks, and send persistent server problems to your hosting provider with evidence.
One thought on “What Is a Cloudflare Error? Codes, Causes and Fixes”