When should I use HTTP 201?

The 201 (Created) status code indicates that the request has been fulfilled and has resulted in one or more new resources being created. The primary resource created by the request is identified by either a Location header field in the response or, if no Location field is received, by the effective request URI.

For More Information Please Refer: https://stackoverflow.com/questions/1860645/create-request-with-post-which-response-codes-200-or-201-and-content