4xx Client Error
You sent your request to the wrong server. It's like calling the wrong phone number - the person who answered can't help you.
Use 421 when the request reached a server that cannot produce a response for that scheme-and-authority combination.
GET https://api.example.test/data
# Headers
Host: cdn.example.com421 Misdirected Request
# Headers
Content-Type: application/json
# Body
{
"error": "misdirected_request"
}Server handling cdn.example.com cannot serve api.example.com requests
GET https://api.example.test/api/users
# Headers
Host: wrong.example.com421 Misdirected Request
# Headers
Content-Type: application/json
# Body
{
"error": "misdirected_request"
}Server received request for domain it doesn't serve