HTTP 421 Misdirected Request — TLS/HTTP2 Routing Error
Warning4xx client error
Overview
HTTP 421 Misdirected Request means the request was directed at a server that cannot produce a response, often due to HTTP/2 connection coalescing issues.
Key Details
- Introduced in HTTP/2 specification (RFC 7540) for connection multiplexing issues
- HTTP/2 connection coalescing allows reusing connections for different hostnames on the same IP
- 421 occurs when the server cannot serve the requested hostname on the reused connection
- The TLS certificate may not cover the requested hostname
- Client should retry on a new, dedicated connection to the correct server
Common Causes
- HTTP/2 connection coalescing sending request to wrong virtual host
- TLS certificate does not cover the requested domain name
- CDN routing request to a server that does not host the requested domain
- Load balancer misconfiguration with shared IP addresses
Steps
- 1Retry the request — client should open a new connection and try again
- 2Verify TLS certificate covers the domain using openssl s_client -connect host:443
- 3Check CDN configuration to ensure correct origin mapping for each domain
- 4If using shared hosting, verify SNI is properly configured
- 5Disable HTTP/2 connection coalescing as a temporary workaround
Tags
http421misdirected-requesthttp2tls
More in 4xx Client Error
http-400-bad-requestHTTP 400 Bad Request — What It Means & How to Fix It
Errorhttp-401-unauthorizedHTTP 401 Unauthorized — What It Means & How to Fix It
Errorhttp-402-payment-requiredHTTP 402 Payment Required — What It Means & How to Fix It
Errorhttp-403-forbiddenHTTP 403 Forbidden — What It Means & How to Fix It
Errorhttp-404-not-foundHTTP 404 Not Found — What It Means & How to Fix It
Errorhttp-405-method-not-allowedHTTP 405 Method Not Allowed — What It Means & How to Fix It
ErrorFrequently Asked Questions
HTTP/2 can reuse a single TCP connection for multiple domains if they share an IP and the TLS cert covers both. 421 occurs when this fails.