EN
520Cloudflare errors (52x)

HTTP 520 Web Server Returned an Unknown Error

The website's server returned an empty, unknown or unexpected response to Cloudflare.

Quick answer

HTTP status code 520 (Web Server Returned an Unknown Error) means: The website's server returned an empty, unknown or unexpected response to Cloudflare. Yes, a server error: the website failed to handle the request. Usually only the site owner or host can fix it.

Codes 520–526 are not part of the official HTTP standard; they are returned by Cloudflare's network.

Is it an error?

Cloudflare errors (52x)

Yes, a server error: the website failed to handle the request. Usually only the site owner or host can fix it.

Unofficial codes returned by Cloudflare when it cannot get a valid response from the website's own (origin) server.

Common causes

  • Error in the website's code, a plugin or a recent update
  • Firewall or security plugin blocking the proxy/CDN's IP addresses
  • Cookies or headers too large
  • Server misconfiguration (.htaccess, server or proxy rules)

If you are visiting the site

  1. Reload the page
  2. Wait a few minutes before trying again
  3. Contact the website if the problem continues

If you run the website

  1. Check the server error logs at the time of the error
  2. Allow Cloudflare's IP ranges in the server firewall and security plugins
  3. Reduce cookie size or raise header size limits
  4. Ask your hosting provider to check the server

Frequently asked questions

What does HTTP 520 mean?

HTTP status code 520 (Web Server Returned an Unknown Error) means: The website's server returned an empty, unknown or unexpected response to Cloudflare.

Is HTTP 520 an error?

Yes, a server error: the website failed to handle the request. Usually only the site owner or host can fix it.

How do I fix a 520 error?

If you are visiting the site: Reload the page; Wait a few minutes before trying again; Contact the website if the problem continues. If you run the website: Check the server error logs at the time of the error; Allow Cloudflare's IP ranges in the server firewall and security plugins; Reduce cookie size or raise header size limits; Ask your hosting provider to check the server.

Cloudflare errors (52x)