# httpPost example giving error 501

**URL:** <https://forum.inductiveautomation.com/t/httppost-example-giving-error-501/98901>\
**Category:** Ignition\
**Tags:** webdev\
**Created:** [November 20, 2024, 10:34pm UTC](https://forum.inductiveautomation.com/t/httppost-example-giving-error-501/98901 "2024-11-20T22:34:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shuvadeep](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Shuvadeep](https://forum.inductiveautomation.com/u/Shuvadeep)\
**Post date:** [November 20, 2024, 10:34pm UTC](https://forum.inductiveautomation.com/t/httppost-example-giving-error-501/98901/1 "2024-11-20T22:34:30Z")

</div>

postjson file,

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/2/12ed47ebee7f5e093547aca13785af0b297d1666.png)  
button file  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/2/62b5b21b8cd0a1e35c213eb777f48c0619ada651.png)  
when i click button on runtime, it gives below error  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/5/85c56c29e388ecdec2b1117ddbd0ece7bbada404.png)

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [November 20, 2024, 10:36pm UTC](https://forum.inductiveautomation.com/t/httppost-example-giving-error-501/98901/2 "2024-11-20T22:36:39Z")

</div>

Fix the formatting of your `doPost` implementation, it all needs to be tabbed over one.

If it still doesn't work after saving the project show us the configuration and some more details.

---

<div class="post-metadata">

**Author:** ![Shuvadeep](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@Shuvadeep](https://forum.inductiveautomation.com/u/Shuvadeep)\
**Post date:** [November 21, 2024, 2:49pm UTC](https://forum.inductiveautomation.com/t/httppost-example-giving-error-501/98901/3 "2024-11-21T14:49:13Z")

</div>

thanks
