# Http request node, handling failures silently

**URL:** <https://discourse.nodered.org/t/http-request-node-handling-failures-silently/71246>\
**Category:** General\
**Tags:** http-request\
**Created:** [25 November 2022 13:53 UTC](https://discourse.nodered.org/t/http-request-node-handling-failures-silently/71246 "2022-11-25T13:53:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [25 November 2022 13:53 UTC](https://discourse.nodered.org/t/http-request-node-handling-failures-silently/71246/1 "2022-11-25T13:53:08Z")

</div>

I am using the HTTP request node. When everything goes well, you get a statusCode=200, any other code is a failure of some sort. But in case of failures, you also get failures reported in debug window and system console. Is there a way to silence these reports in debug window and system console?  
I would rather like to handling them my own way.

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [25 November 2022 13:58 UTC](https://discourse.nodered.org/t/http-request-node-handling-failures-silently/71246/2 "2022-11-25T13:58:16Z")

</div>

You should be able to use the `catch` node with 'Only send non-2xx responses to Catch node' on the `http request` node

you can then bounce of the catch node to do some recovery of sorts

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [25 November 2022 14:23 UTC](https://discourse.nodered.org/t/http-request-node-handling-failures-silently/71246/3 "2022-11-25T14:23:56Z")

</div>

> [@marcus-j-davies](#):
>
> You should be able to use the `catch` node with 'Only send non-2xx responses to Catch node' on the `http request` node

@marcus-j-davies I tried that option, but I still get failure reports in debug window and system console. Allthough, I noticed it takes a lot longer before they start reporting in debug window and system console.

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [25 November 2022 14:47 UTC](https://discourse.nodered.org/t/http-request-node-handling-failures-silently/71246/4 "2022-11-25T14:47:38Z")

</div>

@marcus-j-davies I must stay corrected. It doesn't do it no more in debug window, it seems now. But I sill get reports in system console (node-red-log).

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [25 November 2022 14:49 UTC](https://discourse.nodered.org/t/http-request-node-handling-failures-silently/71246/5 "2022-11-25T14:49:05Z")

</div>

Hi @henkkas,  
I'm not sure if there is a way around that (i could be wrong), some others may know.

---

<div class="post-metadata">

**Author:** ![henkkas](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/henkkas/32/39844_2.png) [@henkkas](https://discourse.nodered.org/u/henkkas)\
**Post date:** [25 November 2022 15:37 UTC](https://discourse.nodered.org/t/http-request-node-handling-failures-silently/71246/6 "2022-11-25T15:37:02Z")

</div>

@marcus-j-davies Thanks anyway for your advice, it was mostly very helpful!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [24 January 2023 15:38 UTC](https://discourse.nodered.org/t/http-request-node-handling-failures-silently/71246/7 "2023-01-24T15:38:02Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
