Fix guides
The errors that take websites down.
What each code means, what usually causes it, and what to check first.
- 502Bad GatewayA proxy, load balancer or CDN in front of your site asked the origin server for the page and got back something it could not use — a crash, a closed connection or garbage.
- 503Service UnavailableThe server is reachable but says it cannot handle the request right now. It is usually temporary: overload, a maintenance mode, or no free workers.
- 504Gateway TimeoutA proxy in front of your site waited for the origin server to answer and gave up. The origin is alive but too slow, or the request never reached it.
- 521Web Server Is DownA Cloudflare-specific error: Cloudflare tried to connect to your origin server and the connection was refused.
- 522Connection Timed OutCloudflare could not finish a TCP connection to your origin in time. The server did not refuse — it just never answered.