🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: REST APIs: all 10 questions

Quiz: REST APIs · Question 6 of 10

What status should a successful DELETE with no response body return?

What status should a successful DELETE with no response body return?

  1. A.200 OK with an empty JSON object always
  2. B.201 Created
  3. C.204 No Content
  4. D.404 Not Found
Answer & explanation

Correct answer: 204 No Content

204 says "done, and there is nothing to send back".

Can you get the rest right without peeking?

Take the timed Quiz: REST APIs quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →