easyStudy question · answer published in REST API interview questions, so no pointsapi-designhttp-status-codescontent-negotiation
A client posts XML to a JSON API
A JSON-only endpoint receives a POST with Content-Type: application/xml. Which status code should it return?
Discussion 0
Join free to post in the discussion.
Related questions
- Response for a successful DELETEBackend Developer
- A product page removed for goodBackend Developer
- Signing up with a taken usernameBackend Developer
- Calling DELETE on a read-only routeBackend Developer
- URL for one productBackend Developer
- Telling the client where the new item livesBackend Developer
- Filtering and sorting a listBackend Developer
- fetch treats a 404 as successBackend Developer