HTTP 308 Permanent Redirect vs 522 Connection Timed Out
HTTP 308 (Permanent Redirect) is a 3xx Redirection response, while 522 (Connection Timed Out) is a 5xx Server Error response. 308 indicates that the resource has been permanently moved. Like 301, but guarantees the HTTP method will NOT be changed. In contrast, 522 means that cloudflare-specific. TCP connection to the origin server timed out.
Description
The resource has been permanently moved. Like 301, but guarantees the HTTP method will NOT be changed.
When You See It
For permanent URL changes where POST requests must remain POST.
How to Fix
Update all references to the new URL. The HTTP method is preserved.
Description
Cloudflare-specific. TCP connection to the origin server timed out.
When You See It
When the origin server is overloaded or network issues prevent connection.
How to Fix
Check origin server health. Verify firewall rules. Check for network congestion.
Key Differences
308 is a 3xx Redirection response, while 522 is a 5xx Server Error response.
HTTP 308: The resource has been permanently moved. Like 301, but guarantees the HTTP method will NOT be changed.
HTTP 522: Cloudflare-specific. TCP connection to the origin server timed out.
You encounter 308 when for permanent URL changes where POST requests must remain POST.
You encounter 522 when when the origin server is overloaded or network issues prevent connection.
When to Use Which
For 308 (Permanent Redirect): Update all references to the new URL. The HTTP method is preserved. For 522 (Connection Timed Out): Check origin server health. Verify firewall rules. Check for network congestion.