API Testing · Junior · Question 12 of 75
When is 204 No Content used?
- 1When the request succeeded and there's no body to return
- 2When the server needs more time to answer the request
- 3When the requested resource doesn't exist on the server
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.