- Home
- Tools
- Developer Tools
- HTTP Status Codes
- 421 Misdirected Request
421 Misdirected Request
The request arrived at a server that isn't set up to answer for this host name. The client can try again on a new connection.
- Class
- 4xx Client error. The request is the problem: a wrong address, missing credentials, data the server can't accept.
- Defined in
- RFC 9110
What causes it
With HTTP/2 a browser may use one connection for several host names when they share an IP address and a certificate that covers them all. If the server at the other end doesn't in fact serve one of those names, it answers 421.
What to do about it
Clients are allowed to send the request again on a fresh connection, and browsers do that without showing anything. If visitors do get to see it, the configuration of the server is off: typically a certificate that covers more names than the site behind it serves, or a proxy that sends the connection to the wrong backend.
Not to be confused with
| 400 Bad Request | The request itself is malformed. |
|---|---|
| 404 Not Found | The host is right, the path isn't. |
All codes are on the list of HTTP status codes, which can be searched by number and by word.
Other 4xx codes
- 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
- 424 Failed Dependency
- 425 Too Early
- 426 Upgrade Required
- 428 Precondition Required
- 429 Too Many Requests
- 431 Request Header Fields Too Large
- 451 Unavailable For Legal Reasons