Back to all status codes

406

Not Acceptable

Client Error
RFC 7231

The server cannot generate a response matching the list of acceptable values defined in the request headers.

Detailed Information

The 406 status code indicates that the server cannot generate a response matching the list of acceptable values defined in the request headers.

Common Examples

  • API requests with unsupported media types
  • Web page requests with unsupported content types

Common Uses

  • API requests with unsupported media types
  • Web page requests with unsupported content types

Best Practices

  • Use when the requested resource is not acceptable
  • Include Accept-Ranges header if range requests are supported
  • Ensure proper content negotiation mechanisms are in place

Additional Resources

Read more on MDN