The request reached a server that is not able to answer for the host it asked about, typically because an HTTP/2 connection was reused for the wrong origin.
Defined in RFC 9110 §15.5.20 — 421 Misdirected Request · MDN reference
HTTP/2 and HTTP/3 connection coalescing: a browser reuses one connection for two hostnames covered by the same certificate, but the server behind it only serves one of them.
Shows up only with connection reuse across hostnames that share a certificate and IP. The test is whether your client retries on a new connection, as it should.
Retry the request on a fresh connection to the host. Browsers do this automatically; custom clients and proxies sometimes need to be told.
1 endpoint in this playground answers with 421. Every one is free, needs no signup, and can be called from the browser or with curl.
GET https://funapi.dev/api/faults/v1/status/{code} — Return any status code on demand (200–599) (Fault Injection API) Open & run this endpointAll HTTP status codes · All 39 mock REST APIs · Getting started guide
Last updated