Social Coding

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?

Answer

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


Get in Touch

  • Image 9
  • Image 10
  • Image 11
  • Image 12
  • Image 13
  • Image 14
  • Image 9
  • Image 10
  • Image 11
  • Image 12
  • Image 13
  • Image 14