← 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?
- A.200 OK
- B.201 Created
- C.204 No Content
- 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 →