API Testing · Junior · Question 12 of 75

When is 204 No Content used?

Show the answer

Correct answer: When the request succeeded and there's no body to return

Explanation

It's common for DELETE or updates that return nothing. A 204 response must not have a body.

Further reading

Problem with a question

API Testing · Junior · question 12

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