421 Misdirected Request

The request reached a server that is not configured to produce a response for the requested authority.

Status

HTTP/1.1 421 Misdirected Request

Details

421 belongs mostly to HTTP/2 connection coalescing. A client that already holds a connection to one host may reuse it for another host covered by the same certificate. If the server behind that connection cannot serve the second host, it answers 421 and the client must open a fresh connection.

It also appears on plain HTTP/1.1 when a request arrives with a Host header that no virtual host matches and the server refuses to fall back to a default.

Common causes

How to fix it

As the client

As the server

Examples

GET /assets/logo.png HTTP/2
:authority: cdn.example.com

HTTP/2 421
content-type: text/plain

Connection is not authoritative for cdn.example.com

Specifications

RFC 9110 §15.5.20

See also