HTTP 302 Found vs 421 Misdirected Request
HTTP 302 (Found) is a 3xx Redirection response, while 421 (Misdirected Request) is a 4xx Client 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, 421 means that the request was directed at a server that is unable to produce a response for the combination of scheme and authority in the URI.
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
The request was directed at a server that is unable to produce a response for the combination of scheme and authority in the URI.
When You See It
With HTTP/2 when a connection is reused for a domain the certificate doesn't cover.
How to Fix
Retry the request on a new connection.
Key Differences
302 is a 3xx Redirection response, while 421 is a 4xx Client Error response.
HTTP 302: The resource temporarily resides at a different URL. The client should continue using the original URL for future requests.
HTTP 421: The request was directed at a server that is unable to produce a response for the combination of scheme and authority in the URI.
You encounter 302 when during A/B testing, temporary maintenance pages, or geo-based redirects.
You encounter 421 when with HTTP/2 when a connection is reused for a domain the certificate doesn't cover.
When to Use Which
For 302 (Found): Follow the Location header. Note: browsers may change POST to GET on redirect. For 421 (Misdirected Request): Retry the request on a new connection.