HTTP

HTTP 302 Found vs 526 Invalid SSL Certificate

HTTP 302 (Found) is a 3xx Redirection response, while 526 (Invalid SSL Certificate) 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, 526 means that cloudflare-specific. The origin's SSL certificate could not be validated.

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'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.

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

2.

HTTP 302: The resource temporarily resides at a different URL. The client should continue using the original URL for future requests.

3.

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

4.

You encounter 302 when during A/B testing, temporary maintenance pages, or geo-based redirects.

5.

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

When to Use Which

For 302 (Found): Follow the Location header. Note: browsers may change POST to GET on redirect. For 526 (Invalid SSL Certificate): Install a valid SSL certificate on the origin, or use Cloudflare Origin CA certificate.

Learn More