Error Codes Wiki

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

  1. 1Retry the request — client should open a new connection and try again
  2. 2Verify TLS certificate covers the domain using openssl s_client -connect host:443
  3. 3Check CDN configuration to ensure correct origin mapping for each domain
  4. 4If using shared hosting, verify SNI is properly configured
  5. 5Disable HTTP/2 connection coalescing as a temporary workaround

Tags

http421misdirected-requesthttp2tls

More in 4xx Client Error

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