# How to combine a catch node with http request/response?

**URL:** <https://discourse.nodered.org/t/how-to-combine-a-catch-node-with-http-request-response/10294>\
**Category:** Dashboard\
**Created:** [17 April 2019 17:13 UTC](https://discourse.nodered.org/t/how-to-combine-a-catch-node-with-http-request-response/10294 "2019-04-17T17:13:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tve](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tve/32/59475_2.png) [@tve](https://discourse.nodered.org/u/tve)\
**Post date:** [17 April 2019 17:13 UTC](https://discourse.nodered.org/t/how-to-combine-a-catch-node-with-http-request-response/10294/1 "2019-04-17T17:13:56Z")

</div>

Is there a recommended method for combining a catch node with an http response node to send an error response? I'm getting an http request in and need to fetch a file to send a response and that can fail throwing an error. I can catch the error but that looses the msg.res which encodes the data needed by the http response node to actually send an error response. I can come up with a bunch of hacky ways to merge that back in, but I wonder whether I'm missing a clean solution.

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [17 April 2019 18:08 UTC](https://discourse.nodered.org/t/how-to-combine-a-catch-node-with-http-request-response/10294/2 "2019-04-17T18:08:02Z")

</div>

The message emitted by the catch node _should_ be the original message that hit the error, with the error details added. As such, msg.res _should_ be there.

Which node are you using that throws the error? It may be doing it incorrectly.

---

<div class="post-metadata">

**Author:** ![tve](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tve/32/59475_2.png) [@tve](https://discourse.nodered.org/u/tve)\
**Post date:** [17 April 2019 19:32 UTC](https://discourse.nodered.org/t/how-to-combine-a-catch-node-with-http-request-response/10294/3 "2019-04-17T19:32:11Z")

</div>

I see, you are correct. I was reading the info on the catch node and it doesn't mention that additional elements of the original message are passed through. Thanks for the clarification.
