API Design · Junior · Question 19 of 75

What does the Content-Type: application/json request header tell the server?

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.

Further reading

Problem with a question

API Design · Junior · question 19

Test yourself

Take the API Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz