ExamGecko
Question list
Search
Search

Question 412 - 200-901 discussion

Report
Export

Which HTTP response code is returned from a successful REST API call to create a new resource?

A.

201

Answers
A.

201

B.

204

Answers
B.

204

C.

302

Answers
C.

302

D.

429

Answers
D.

429

Suggested answer: A

Explanation:

The HTTP status code 201 (Created) indicates that a request has been fulfilled and resulted in a new resource being created.

201 Created: This status code is used when a new resource is successfully created as a result of a POST request.

Use Case: Commonly returned in response to a POST request that adds a new item to a collection.

HTTP Status Codes: HTTP Status Code 201

asked 07/10/2024
Avinash Jindal
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first