HTTP 421 Misdirected Request
HTTP 421 Misdirected Request means the request reached a server that cannot produce a response for that hostname. It usually happens with HTTP/2 connection…
Quick answer
HTTP 421 Misdirected Request means the request reached a server that cannot produce a response for that hostname. It usually happens with HTTP/2 connection reuse, when a browser reuses a TLS connection for a different domain covered by the same certificate.
Last updated · Maintained by FreeAIToolz · How we test
What does HTTP 421 Misdirected Request mean?
HTTP/2 lets browsers reuse one connection for several hostnames that share an IP and certificate. If the server is not configured for one of those hosts, it returns 421 and the browser retries on a new connection.
| Status code | 421 |
|---|---|
| Name | Misdirected Request |
| Class | 4xx Client Error |
| Defined in | RFC 9110 §15.5.20 |
| Cacheable by default | No, unless Cache-Control says so |
| Safe to retry automatically? | No: change the request first |
What causes HTTP 421?
- HTTP/2 connection coalescing across domains on a wildcard or multi-domain certificate.
- SNI and Host header mismatch behind a proxy.
How do I fix HTTP 421?
- Make sure every hostname on the certificate is served by the same server configuration, or use separate certificates.
- Check that the proxy forwards the correct Host and SNI.
What should a client do after HTTP 421?
Retry on a new connection (browsers do this automatically).
Does HTTP 421 affect SEO?
Rare. Persistent 421s on a domain can stop Googlebot fetching pages.
Example 421 response
HTTP/1.1 421 Misdirected Request
Date: Mon, 01 Dec 2026 12:00:00 GMT
Content-Type: application/json
{"error":{"status":421,"message":"Misdirected Request"}} How to return 421 Misdirected Request in code
Express (Node.js)
res.status(421).json({ error: 'Misdirected Request' }); Next.js route handler
return Response.json({ error: 'Misdirected Request' }, { status: 421 }); FastAPI (Python)
raise HTTPException(status_code=421, detail="Misdirected Request") PHP
http_response_code(421); Nginx
location = /example {
return 421;
} Other 4xx status codes
The request contains an error or cannot be fulfilled as sent. Fix the request before retrying.
- 400 Bad Request
- 401 Unauthorized
- 402 Payment Required
- 403 Forbidden
- 404 Not Found
- 405 Method Not Allowed
- 406 Not Acceptable
- 407 Proxy Authentication Required
- 408 Request Timeout
- 409 Conflict
- 410 Gone
- 411 Length Required
- 412 Precondition Failed
- 413 Content Too Large
- 414 URI Too Long
- 415 Unsupported Media Type
- 416 Range Not Satisfiable
- 417 Expectation Failed
- 418 I'm a teapot
- 422 Unprocessable Content
- 423 Locked
- 425 Too Early
- 426 Upgrade Required
- 428 Precondition Required
- 429 Too Many Requests
- 431 Request Header Fields Too Large
- 451 Unavailable For Legal Reasons
- 499 Client Closed Request
Frequently asked questions
Why do I see 421 only in some browsers?
Is 421 a client or server problem?
Is 421 a client or server error?
Related
- 400 Bad Request HTTP 400 Bad Request means the server cannot process the request because of a client error, such as malformed .
- 502 Bad Gateway HTTP 502 Bad Gateway means a server acting as a gateway or proxy (Nginx, a load balancer, Cloudflare) got an i.
- 525 SSL Handshake Failed Cloudflare error 525 means the SSL/TLS handshake between Cloudflare and your origin server failed.
- Open the HTTP Status Codes Reference → Free, no signup.