The HTTP status code _______ is used to indicate a successful HTTP POST request.
- 200
- 201
- 204
- 202
The correct option is 201. This status code indicates that a new resource has been successfully created as a result of the POST request. It's commonly used in RESTful APIs when a new resource is added.
Loading...
Related Quiz
- API documentation is essential for identifying the ________ and ________ that an API supports, which are crucial for creating effective test scenarios.
- What is the primary advantage of using cloud-based API testing tools in terms of scalability and collaboration?
- What is the primary goal of designing automation scripts for APIs?
- To maintain data consistency in microservices, _________ strategies are often employed.
- What is the primary goal of monitoring APIs in a production environment?