When making a request with an unsupported Content-Type header, the produced error body is helpful enough (code: INVALID_CONTENT_TYPE, message: Invalid Content-Type (x). These are supported: y, z...). However, the status code 400 is not the one you would expect; according to the HTTP specification, in this case 415 should be used.
When making a request with an unsupported Content-Type header, the produced error body is helpful enough (
code: INVALID_CONTENT_TYPE, message: Invalid Content-Type (x). These are supported: y, z...
). However, the status code 400 is not the one you would expect; according to the HTTP specification, in this case 415 should be used.