API Testing · Junior · Question 18 of 75

What does 415 Unsupported Media Type usually indicate?

Show the answer

Correct answer: The body format, e.g. its Content-Type, isn't accepted

Explanation

Sending JSON with Content-Type: text/plain, or XML to a JSON-only API, can produce 415.

Further reading

Problem with a question

API Testing · Junior · question 18

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