Fork me on GitHub

The RESTful CookBook

How to do stuff RESTful

If an HTTP Accept header can't be satisfied, return a 406. If an Accept-Language header can't be satisfied, what's the proper response code?


You should return a 406. RFC 2616 10.4.7 says "accept headers" plural. This suggests every Accept-* header that cannot be satisfied, should return a 406 response.

See also

This recipe has been written by joshua thijssen.