Let's consider the following scenario. I need to access a resource hosted on server X. I want to get this resource in a Y format, so along with my request I send the Accept: Y
header. Unfortunately X does not support Y and I'm not not allowed to access the resource on X as well. I've included valid Authorization
header.
How should X reply? With a 415
- telling me that it cannot talk to me in a requested format or 403
(with some body that I probably cannot read because the body parser I use supports only Y
format).