HTTP

HTTP 307 Temporary Redirect vs 526 Invalid SSL Certificate

HTTP 307 (Temporary Redirect) is a 3xx Redirection response, while 526 (Invalid SSL Certificate) is a 5xx Server Error response. 307 indicates that the resource temporarily resides at a different URL. Unlike 302, this guarantees the HTTP method will NOT be changed. In contrast, 526 means that cloudflare-specific. The origin's SSL certificate could not be validated.

Description

The resource temporarily resides at a different URL. Unlike 302, this guarantees the HTTP method will NOT be changed.

When You See It

When you need a temporary redirect that preserves the request method (POST stays POST).

How to Fix

Follow the Location header using the same HTTP method.

Description

Cloudflare-specific. The origin's SSL certificate could not be validated.

When You See It

When using Cloudflare Full (Strict) mode with an invalid origin certificate.

How to Fix

Install a valid SSL certificate on the origin, or use Cloudflare Origin CA certificate.

Key Differences

1.

307 is a 3xx Redirection response, while 526 is a 5xx Server Error response.

2.

HTTP 307: The resource temporarily resides at a different URL. Unlike 302, this guarantees the HTTP method will NOT be changed.

3.

HTTP 526: Cloudflare-specific. The origin's SSL certificate could not be validated.

4.

You encounter 307 when when you need a temporary redirect that preserves the request method (POST stays POST).

5.

You encounter 526 when when using Cloudflare Full (Strict) mode with an invalid origin certificate.

When to Use Which

For 307 (Temporary Redirect): Follow the Location header using the same HTTP method. For 526 (Invalid SSL Certificate): Install a valid SSL certificate on the origin, or use Cloudflare Origin CA certificate.

Learn More