API Testing · Middle · Question 72 of 75
What does 406 Not Acceptable mean?
- 1The request body is too large for the server to read
- 2The user doesn't have permission for this resource
- 3The server can't produce any format listed in
Accept
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.