@http · HTTP status codes, explained HTTP/1.1 421 Misdirected Request ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 4xx · Client error This server can't answer for that host. WHAT IT MEANS ──────────────────────────────────────────────────────────── The request reached a server that can't answer for that host name and port. The client can retry on a different connection. It mostly comes up with HTTP/2, where browsers reuse one connection for several host names that share a certificate. WHY YOU'RE SEEING IT ───────────────────────────────────────────────────── → HTTP/2 connection reuse across subdomains served by different backends. → A host name that doesn't match the TLS SNI the connection was opened with. → A load balancer routing a host to the wrong backend. HOW TO FIX IT ──────────────────────────────────────────────────────────── → Use separate certificates or IPs for hosts that different servers handle. → Make sure the server accepts every host name on its certificate, or check that SNI and Host match. EXAMPLE RESPONSE ───────────────────────────────────────────────────────── HTTP/2 421 Misdirected Request content-type: text/html related 400 Bad Request   502 Bad Gateway   505 HTTP Version Not Supported spec RFC 9110 §15.5.20 https://www.rfc-editor.org/rfc/rfc9110#section-15.5.20 web https://athttp.com/421 ← curl athttp.com/418 curl athttp.com/422 →