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

Quick Actions

Category Information

Client Error

The request contains bad syntax or cannot be fulfilled

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

HTTP Status Codes Reference - Complete List with Descriptions