I have an endpoint which supports POST method with content-type as JSON (only). But the POST request doesn't return any content in its response body other than status codes. In this scenario, what is the correct behavior?
- Client sends POST with Accept header as
application/json
- Client sends POST with Accept header as
application/xml
Should the server return error in case 2?