# Catch node, does not catch msg.error and 404 from HTTP node

**URL:** https://discourse.nodered.org/t/catch-node-does-not-catch-msg-error-and-404-from-http-node/35566
**Category:** General
**Created:** [8 November 2020 20:47 UTC](https://discourse.nodered.org/t/catch-node-does-not-catch-msg-error-and-404-from-http-node/35566 "2020-11-08T20:47:34Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![mintgroen](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mintgroen/32/31595_2.png) [@mintgroen](https://discourse.nodered.org/u/mintgroen)
#### Post date: [8 November 2020 20:47 UTC](https://discourse.nodered.org/t/catch-node-does-not-catch-msg-error-and-404-from-http-node/35566/1 "2020-11-08T20:47:34Z")

</div>

I am using some HTTP request nodes to refresh an OAuth2 token and get data from and API.

I thought I could use the Catch node to catch errors generated by the HTTP node but for functional responses of the HTTP, it does not seem to be the case.

For example:

payload.error:

```auto
08/11/2020, 21:39:42node: SDM Devices
msg.payload : Object
object
error: object
code: 404
message: "Enterprise enterprises/TESTPROJECT not found."
status: "NOT_FOUND"

AND

08/11/2020, 21:41:18node: SDM Devices
msg.payload : string[1616]
"<!DOCTYPE html>↵<html lang=en>↵ <meta charset=utf-8>↵ <meta name=viewport content="initial-scale=1, minimum-scale=1, width=device-width">↵ <title>Error 404 (Not Found)!!1</title>↵ 

```

Is not caught by the Catch node. Is that intended functionality, maybe a nice feature to add or something that I have to catch myself?

---

<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: [7 January 2021 20:47 UTC](https://discourse.nodered.org/t/catch-node-does-not-catch-msg-error-and-404-from-http-node/35566/2 "2021-01-07T20:47:42Z")

</div>

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