API Design · Junior · Question 20 of 75

What is the Accept header for?

Explanation

This is content negotiation. If the server can't produce any acceptable format, it can answer 406 Not Acceptable.

Further reading

Problem with a question

API Design · Junior · question 20

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