The Ultimate Guide to HTTP Status Codes (100–599)
A complete reference guide to all HTTP status codes from 100 to 599, with explanations and common use cases.
Feb 28, 2026
4xx Client Error
The 421 (Misdirected Request) status code indicates that the request was directed at a server that is not able to produce a response. This can occur when a connection is reused for a different origin in HTTP/2 or when a server receives a request for a virtual host it does not serve.
When using HTTP/2 connection pooling, a client might reuse a connection to one virtual host to send a request intended for another. The server detects this misdirection and responds with 421, prompting the client to open a new connection for the correct host.
# Nginx - handling misdirected requests
server {
listen 443 ssl http2;
server_name example.com;
if ($host != 'example.com') {
return 421;
}
}