# If Node - How to check and validate the HTTP Status code

**URL:** <https://community.n8n.io/t/if-node-how-to-check-and-validate-the-http-status-code/2255>\
**Category:** Questions\
**Created:** [September 5, 2020, 2:22am UTC](https://community.n8n.io/t/if-node-how-to-check-and-validate-the-http-status-code/2255 "2020-09-05T02:22:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bala\_Sista](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/bala_sista/32/1782_2.png) [@Bala\_Sista](https://community.n8n.io/u/Bala_Sista)\
**Post date:** [September 5, 2020, 2:22am UTC](https://community.n8n.io/t/if-node-how-to-check-and-validate-the-http-status-code/2255/1 "2020-09-05T02:22:59Z")

</div>

I am new to n8n and I am trying to check HTTP status code to take next steps in the workflow. Doesnt matter what I do HTTP status code cannot be validated. Tried String / Number data type and it doesn’t work. Any example will help

---

<div class="post-metadata">

**Author:** ![Bala\_Sista](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/bala_sista/32/1782_2.png) [@Bala\_Sista](https://community.n8n.io/u/Bala_Sista)\
**Post date:** [September 5, 2020, 2:51am UTC](https://community.n8n.io/t/if-node-how-to-check-and-validate-the-http-status-code/2255/3 "2020-09-05T02:51:10Z")

</div>

Retyping the question: If the HTTP code is not 200/ 201 how to validate and move to next steps. What can we do the same? Any Ideas

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/1/132a6dac90e0e2f345935d0b7d821a4175e6c93c.png)

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [September 5, 2020, 8:52am UTC](https://community.n8n.io/t/if-node-how-to-check-and-validate-the-http-status-code/2255/4 "2020-09-05T08:52:04Z")

</div>

If the response is none 200/201 n8n will error by default. If you want that n8n ignores the response-code you can add set under “Options” the option “Ignore Response Code” and set it to “true”.  
If you additionally want to know the exact response code that got returned, then you also have to add the option “Full response” and set it also to “true”.

---

<div class="post-metadata">

**Author:** ![Bala\_Sista](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/bala_sista/32/1782_2.png) [@Bala\_Sista](https://community.n8n.io/u/Bala_Sista)\
**Post date:** [September 5, 2020, 2:36pm UTC](https://community.n8n.io/t/if-node-how-to-check-and-validate-the-http-status-code/2255/5 "2020-09-05T14:36:13Z")

</div>

The “IF Node” to validate response condition is not working when “Ignore Response Code” and the response code is not 200/201. Once the error condition is ignored all the other steps are expected to work like normal?

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [September 5, 2020, 3:25pm UTC](https://community.n8n.io/t/if-node-how-to-check-and-validate-the-http-status-code/2255/6 "2020-09-05T15:25:11Z")

</div>

Did you test what I proposed?
