In CRUD operations, which HTTP status code is suitable for a successful Create operation in RESTful APIs?
- 200 OK
- 201 Created
- 204 No Content
- 202 Accepted
In RESTful APIs, the HTTP status code "201 Created" is suitable for a successful Create operation. It indicates that the request has been fulfilled, and a new resource has been created as a result of it. Other status codes like "200 OK" and "204 No Content" are often used for different purposes.
Loading...
Related Quiz
- Which of the following databases is a NoSQL database?
- Which of the following is the correct way to declare a variable in JavaScript?
- What is the difference between the == and === operators in JavaScript?
- In JavaScript, the import statement cannot be used in ________.
- You are tasked with merging multiple source objects into a single target object, ensuring that properties from the latest source overwrite those in the target. Which operator would you use, and how would you apply it to accomplish this task?