HTTP 302 Found vs 521 Web Server Is Down
HTTP 302 (Found) is a 3xx Redirection response, while 521 (Web Server Is Down) is a 5xx Server Error response. 302 indicates that the resource temporarily resides at a different URL. The client should continue using the original URL for future requests. In contrast, 521 means that cloudflare-specific. The origin server refused the connection.
Description
The resource temporarily resides at a different URL. The client should continue using the original URL for future requests.
When You See It
During A/B testing, temporary maintenance pages, or geo-based redirects.
How to Fix
Follow the Location header. Note: browsers may change POST to GET on redirect.
Description
Cloudflare-specific. The origin server refused the connection.
When You See It
When Cloudflare can't establish a TCP connection to the origin server.
How to Fix
Check that the origin server is running and the firewall allows Cloudflare IPs.
Key Differences
302 is a 3xx Redirection response, while 521 is a 5xx Server Error response.
HTTP 302: The resource temporarily resides at a different URL. The client should continue using the original URL for future requests.
HTTP 521: Cloudflare-specific. The origin server refused the connection.
You encounter 302 when during A/B testing, temporary maintenance pages, or geo-based redirects.
You encounter 521 when when Cloudflare can't establish a TCP connection to the origin server.
When to Use Which
For 302 (Found): Follow the Location header. Note: browsers may change POST to GET on redirect. For 521 (Web Server Is Down): Check that the origin server is running and the firewall allows Cloudflare IPs.