Back to all status codes
421
Misdirected Request
Client Error
RFC 7540
The request was directed at a server that is not able to produce a response.
Detailed Information
The 421 status code indicates that the request was directed at a server that is not able to produce a response.
Common Examples
- API requests with invalid Host headers
- Web page requests with invalid Host headers
Common Uses
- API requests with invalid Host headers
- Web page requests with invalid Host headers
Best Practices
- Use when the request Host header is invalid
- Include a detailed error message
- Ensure proper Host header validation
Available for Freelance
Fullstack developer specializing in React, Next.js, and Node.js. Let's build something amazing together!
Stay in the loop
Get notified about new tools and updates