---
title: "Comment by Lokendra Bohra on \"HTTP PUT - Response Codes Explained\" | Hashnode"
description: "In case of successful PUT, 201 is ought to be used right?"
url: "https://hashnode.com/posts/http-put-response-codes-explained/5f1134f78d953029bfb66dbf/comment/5f11f2cb3ab8123b44ad970a"
---

[Discussion](https://hashnode.com/posts/http-put-response-codes-explained/5f1134f78d953029bfb66dbf)

Comment [HTTP PUT - Response Codes Explained](https://hashnode.com/posts/http-put-response-codes-explained/5f1134f78d953029bfb66dbf)

[Lokendra Bohra](https://hashnode.com/@lokendra17)

[Jul 17, 2020](https://hashnode.com/posts/http-put-response-codes-explained/5f1134f78d953029bfb66dbf/comment/5f11f2cb3ab8123b44ad970a)

In case of successful PUT, 201 is ought to be used right?

[Tech Hustler](https://hashnode.com/@tech_hustler)

[Jul 17, 2020](https://hashnode.com/posts/http-put-response-codes-explained/5f1134f78d953029bfb66dbf/comment/5f11f2cb3ab8123b44ad970a#reply-5f122793b8ea603b4afa16cb)

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!

[Tech Hustler](https://hashnode.com/@tech_hustler)

[Jul 17, 2020](https://hashnode.com/posts/http-put-response-codes-explained/5f1134f78d953029bfb66dbf/comment/5f11f2cb3ab8123b44ad970a#reply-5f1235a0b8ea603b4afa16eb)

[Lokendra Bohra](https://hashnode.com/@lokendra17) Updated the post. Thanks for reading the article and taking time out to post a comment. Cheers!
