API Design · Junior · Question 19 of 75
What does the Content-Type: application/json request header tell the server?
- 1The request is authenticated
- ✓Correct answer: The body is JSON
- 3The client wants a JSON response
Explanation
The Accept header tells the server which response formats the client wants. A server may reply 415 Unsupported Media Type for unexpected content types.