AES Encryption Explained: How It Works and Why It Matters
Jun 23, 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;
}
}
Blog
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026
Jun 23, 2026