🎙 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 1 of 10

Which status code should a successful POST that creates a resource return?

Which status code should a successful POST that creates a resource return?

  1. A.200 OK
  2. B.201 Created
  3. C.204 No Content
  4. D.202 Accepted
Answer & explanation

Correct answer: 201 Created

Plus a Location header pointing to the new resource.

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 →