# Strange log line

**URL:** <https://discourse.nodered.org/t/strange-log-line/67430>\
**Category:** General\
**Created:** [7 September 2022 10:21 UTC](https://discourse.nodered.org/t/strange-log-line/67430 "2022-09-07T10:21:20Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![fmarzocca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fmarzocca/32/35901_2.png) [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Post date:** [7 September 2022 10:21 UTC](https://discourse.nodered.org/t/strange-log-line/67430/1 "2022-09-07T10:21:21Z")

</div>

Few days ago I found this line in my syslog:

`Sun, 04 Sep 2022 12:37:45 GMT express deprecated res.status("200"): use res.status(200) instead at ../../usr/lib/node_modules/node-red/node_modules/@node-red/nodes/core/network/21-httpin.js:328:34`

What is it referring to?

---

<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:** [7 September 2022 10:52 UTC](https://discourse.nodered.org/t/strange-log-line/67430/2 "2022-09-07T10:52:53Z")

</div>

Hi @fmarzocca - what version of Node-RED are you using?

Does your flow set `msg.statusCode` before passing it to the `HTTP Response` node? If so, how are you doing that?

The error is because `msg.statusCode` has been provided as a String (`"200"`) rather than a number (`200`).

It is a deprecation warning - meaning it will still work, but the flow should be updated to ensure it is passing in a number not a string.

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fmarzocca/32/35901_2.png) [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Post date:** [7 September 2022 11:13 UTC](https://discourse.nodered.org/t/strange-log-line/67430/3 "2022-09-07T11:13:53Z")

</div>

I will check, but it is hard to find the right node... (v. 3.0.2)

---

<div class="post-metadata">

**Author:** ![fmarzocca](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/fmarzocca/32/35901_2.png) [@fmarzocca](https://discourse.nodered.org/u/fmarzocca)\
**Post date:** [7 September 2022 11:21 UTC](https://discourse.nodered.org/t/strange-log-line/67430/4 "2022-09-07T11:21:18Z")

</div>

I have checked. I am not setting `msg.statusCode` anywhere, except here:

 ![Schermata 2022-09-07 alle 13.20.25](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/6/6/6644eb8263a7cfa851e537d9db14353ec9c5a02d.png)

But the log line is not repeating anymore. Maybe it was a test I made days ago. I will check again in the coming days,. Thank you for your answer.

---

<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:** [20 October 2022 18:28 UTC](https://discourse.nodered.org/t/strange-log-line/67430/5 "2022-10-20T18:28:19Z")

</div>

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