API Testing · Junior · Question 20 of 75

What does the Accept header do?

Show the answer

Correct answer: Tells the server which response formats the client accepts

Explanation

With Accept: application/json the server should return JSON or 406 Not Acceptable. This is part of content negotiation.

Further reading

Problem with a question

API Testing · Junior · question 20

Test yourself

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

Take this quiz