nerdexam
Cisco

200-901 · Question #210

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 status code 204 (No Content) is returned when the server successfully processed the request but has no content to return in the response body. This is commonly used with DELETE or PUT operations where the action succeeds but there is nothing to send back. 100 (A) is…

Understanding and Using APIs

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

(32 responses)
  • B
    94% (30)
  • C
    3% (1)
  • D
    3% (1)

Explanation

HTTP status code 204 (No Content) is returned when the server successfully processed the request but has no content to return in the response body. This is commonly used with DELETE or PUT operations where the action succeeds but there is nothing to send back. 100 (A) is 'Continue,' an informational response indicating the client should proceed. 302 (C) is 'Found,' a redirect response. 402 (D) is 'Payment Required,' a client error response indicating a payment is needed.

Topics

#HTTP Status Codes#API Responses#Web Services#REST APIs

Community Discussion

No community discussion yet for this question.

Full 200-901 Practice