Bird
0
0

Which of the following is the correct HTTP response line for a successful resource creation?

easy📝 Syntax Q3 of 15
Rest API - HTTP Status Codes
Which of the following is the correct HTTP response line for a successful resource creation?
AHTTP/1.1 200 OK
BHTTP/1.1 201 Created
CHTTP/1.1 404 Not Found
DHTTP/1.1 500 Internal Server Error
Step-by-Step Solution
Solution:
  1. Step 1: Review HTTP response status lines and match to resource creation

    The response line includes the HTTP version, status code, and reason phrase. 201 Created is the correct status code for successful resource creation.
  2. Final Answer:

    HTTP/1.1 201 Created -> Option B
  3. Quick Check:

    Response line for creation = 201 Created [OK]
Quick Trick: 201 Created is the correct response line for creation [OK]
Common Mistakes:
  • Using 200 OK response line for creation
  • Mixing status codes and reason phrases
  • Incorrect HTTP version in response line

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Rest API Quizzes