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?
- A. 201 Created
- B. 204 No Content
- C. 200 OK
- 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.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- What is the difference between git fetch and git pull?
- The 'O' in SOLID states that a software module should be:
- Which statement correctly describes a Type 1 hypervisor?
- Why do containers usually start faster and use less memory than virtual machines?
- Which of these is one of the four value statements of the Agile Manifesto?
- After a bug fix, the team re-runs previously passing tests to make sure nothing that used to work is now broken. This is: