200-901 · Question #200
Which HTTP response code should be returned when the request is completed but there is no content to send for the request?
The correct answer is B. 204. HTTP 204 No Content indicates the server successfully processed the request but has no content to return in the response body. This is common for DELETE operations or PUT updates. Option A (100 Continue) is an informational code used during request negotiation. Option C (302…
Question
Which HTTP response code should be returned when the request is completed but there is no content to send for the request?
Options
- A100
- B204
- C302
- D402
How the community answered
(49 responses)- A4% (2)
- B94% (46)
- C2% (1)
Explanation
HTTP 204 No Content indicates the server successfully processed the request but has no content to return in the response body. This is common for DELETE operations or PUT updates. Option A (100 Continue) is an informational code used during request negotiation. Option C (302 Found) is a redirect code. Option D (402 Payment Required) indicates a payment is needed to access the resource. Only 204 specifically signals success with no response body.
Topics
Community Discussion
No community discussion yet for this question.