CS FundamentalsEasyProduct-company MCQ pattern

A POST request successfully creates a new resource on a REST server. Which status code is the most appropriate response?

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

Correct answer: A. 201 Created

201 Created signals that a new resource exists, usually with a Location header pointing to it. 202 means the request was accepted but not yet processed.

More Software Engineering, Git and Cloud Basics questions

Exams that ask this topic