HTTP

HTTP 308 Permanent Redirect vs 525 SSL Handshake Failed

HTTP 308 (Permanent Redirect) is a 3xx Redirection response, while 525 (SSL Handshake Failed) 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, 525 means that cloudflare-specific. SSL/TLS handshake with the origin server failed.

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. SSL/TLS handshake with the origin server failed.

When You See It

When origin SSL certificate is expired, misconfigured, or incompatible.

How to Fix

Check origin SSL certificate validity. Ensure TLS version compatibility. Renew expired certificates.

Key Differences

1.

308 is a 3xx Redirection response, while 525 is a 5xx Server Error response.

2.

HTTP 308: The resource has been permanently moved. Like 301, but guarantees the HTTP method will NOT be changed.

3.

HTTP 525: Cloudflare-specific. SSL/TLS handshake with the origin server failed.

4.

You encounter 308 when for permanent URL changes where POST requests must remain POST.

5.

You encounter 525 when when origin SSL certificate is expired, misconfigured, or incompatible.

When to Use Which

For 308 (Permanent Redirect): Update all references to the new URL. The HTTP method is preserved. For 525 (SSL Handshake Failed): Check origin SSL certificate validity. Ensure TLS version compatibility. Renew expired certificates.

Learn More