Search posts, tags, users, and pages
Lokendra Bohra
Learning Algorithms and solving Leetcode
In case of successful PUT, 201 is ought to be used right?
Tech Hustler
Software Engineer | Tech Blogger | Entrepreneur | FullStack ( SpringBoot + AngularJS) | DevOps
Hey, thank you for pointing that out!
Yes, you are right!
200 - when a resource is successfully updated and sends a response. 201 - when a resource is successfully created. (This can be done by POST also) 204 - when a resource is successfully updated but sends no response
I will update the blog accordingly!
Lokendra Bohra Updated the post. Thanks for reading the article and taking time out to post a comment. Cheers!