What status code is returned by a RESTful API when a resource is successfully created?
- 200 OK
- 201 Created
- 204 No Content
- 404 Not Found
When a resource is successfully created in a RESTful API, it typically returns a status code of 201 Created. This indicates that the request was successful and a new resource has been created on the server.
Loading...
Related Quiz
- In a project, you accidentally committed sensitive information to the repository. How would you remove this information from the Git history without affecting the current state of the project?
- The ________ layer of the OSI Model translates data into a format suitable for transmission over a network.
- The _________ layer of the OSI Model deals with the presentation and encryption of data.
- Imagine you're building a microservices architecture where multiple services need to communicate via RESTful APIs. How would you ensure consistency and reliability in this distributed system?
- To implement a stack using arrays, we use a ___________ pointer.