Back to all status codesRead more on MDN
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
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