# NodeJS APM Agent HTTP 400 (Error) Not Showing on Error Graph

**URL:** <https://discuss.elastic.co/t/nodejs-apm-agent-http-400-error-not-showing-on-error-graph/268061>\
**Category:** APM\
**Tags:** nodejs\
**Created:** [March 23, 2021, 9:07am UTC](https://discuss.elastic.co/t/nodejs-apm-agent-http-400-error-not-showing-on-error-graph/268061 "2021-03-23T09:07:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodentskie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rodentskie/32/85940_2.png) [@rodentskie](https://discuss.elastic.co/u/rodentskie)\
**Post date:** [March 23, 2021, 9:07am UTC](https://discuss.elastic.co/t/nodejs-apm-agent-http-400-error-not-showing-on-error-graph/268061/1 "2021-03-23T09:07:37Z")

</div>

**Kibana version** : 7.11.1

**Elasticsearch version** : 7.11.1

**APM Server version** : 7.11.1

**APM Agent language and version** : NodeJS 10

**Fresh install or upgraded from other version?** Using docker

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/d/8dc3ac0db766f8796a15c23b67617d4b436cc7a9.png)

In the image above, I purposely made an error on my api. I submitted a data with missing required fields and return a http with status of 400.

Why is it not showing in the error graph? Please help.

---

<div class="post-metadata">

**Author:** ![trentm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trentm/32/77647_2.png) [@trentm](https://discuss.elastic.co/u/trentm)\
**Post date:** [March 23, 2021, 11:08pm UTC](https://discuss.elastic.co/t/nodejs-apm-agent-http-400-error-not-showing-on-error-graph/268061/2 "2021-03-23T23:08:56Z")

</div>

@rodentskie Welcome! Thanks for asking.

The answer is that 4xx HTTP errors are not considered a "failure" outcome for a transaction. The idea is that if your HTTP server handled a user request, and there was a _client_ error (i.e. a 4xx response), then there is no error from the servers point of view.

The ["Error rate" section of the documentation](https://www.elastic.co/guide/en/kibana/current/transactions.html) for the Transactions view doesn't help make that clear. I'll ask some of our docs folks if that could be made clearer.

---

<div class="post-metadata">

**Author:** ![rodentskie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rodentskie/32/85940_2.png) [@rodentskie](https://discuss.elastic.co/u/rodentskie)\
**Post date:** [March 24, 2021, 1:28am UTC](https://discuss.elastic.co/t/nodejs-apm-agent-http-400-error-not-showing-on-error-graph/268061/3 "2021-03-24T01:28:55Z")

</div>

@trentm Thank you Sir.

I also tried downing the API of my application and have a request that return failed. It is not also showing on the error graph. My application is VueJS and added it as a RUM Agent.

---

<div class="post-metadata">

**Author:** ![trentm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trentm/32/77647_2.png) [@trentm](https://discuss.elastic.co/u/trentm)\
**Post date:** [March 25, 2021, 12:10am UTC](https://discuss.elastic.co/t/nodejs-apm-agent-http-400-error-not-showing-on-error-graph/268061/4 "2021-03-25T00:10:57Z")

</div>

@rodentskie It is hard for me to guess what might be going wrong here. Are you able to put together a small case (sample code) showing a reproduction?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 14, 2021, 8:11pm UTC](https://discuss.elastic.co/t/nodejs-apm-agent-http-400-error-not-showing-on-error-graph/268061/5 "2021-04-14T20:11:18Z")

</div>

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