< HTTP />
fr

406 Not Acceptable

4xx Client Error RFC 9110
The server can't serve the format you're asking for.

What 406 Not Acceptable means {#what}

The server performed content negotiation and couldn’t find a response format matching the client’s Accept headers. Rarely seen in practice because most servers default to a format rather than rejecting the request.

When you’ll see a 406 {#when}

  • Requesting Accept: application/xml from an API that only speaks JSON
  • Strict content negotiation setups