API Testing · Middle · Question 72 of 75

What does 406 Not Acceptable mean?

Show the answer

Correct answer: The server can't produce any format listed in Accept

Explanation

If a client sends Accept: application/xml to a JSON-only API, 406 is the honest answer. Many APIs ignore Accept instead; testers check what's documented.

Further reading

Problem with a question

API Testing · Middle · question 72

Test yourself

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

Take this quiz