406 is returned by the server when it cannot respond based on the acceptance of the request headers (i.e. they have an Accept header that says they only want XML).
415 is returned by the server when the object sent in the request (content in POST or PUT) has an unsupported media type (i.e., sent XML).
so .. 406 when you cannot send what they want, 415 when they send what you do not want.
Hope this helps!
nathan Jul 20 2018-10-21 21:32
source share