Bird
0
0

After successfully creating a resource with a POST request, which HTTP status code is typically returned by the server?

easy📝 Conceptual Q2 of 15
Rest API - HTTP Methods
After successfully creating a resource with a POST request, which HTTP status code is typically returned by the server?
A200 OK
B201 Created
C404 Not Found
D500 Internal Server Error
Step-by-Step Solution
Solution:
  1. Step 1: Recall HTTP status codes

    200 OK means success but not specifically resource creation.
  2. Step 2: Identify creation status code

    201 Created indicates the request succeeded and a new resource was created.
  3. Final Answer:

    201 Created -> Option B
  4. Quick Check:

    201 means resource created successfully [OK]
Quick Trick: 201 status means resource created [OK]
Common Mistakes:
  • Choosing 200 OK which is generic success
  • Confusing 404 Not Found with creation success
  • Assuming 500 means success

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes