What status code is commonly returned by a RESTful API after successfully creating a resource?

  • 200 OK
  • 201 Created
  • 204 No Content
  • 400 Bad Request
The common status code returned by a RESTful API after successfully creating a resource is 201 Created. This status code indicates that the request has been fulfilled, resulting in the creation of a new resource as a result of the action performed by the POST request.
Add your answer
Loading...

Leave a comment

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