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.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *