# APM .NET Agent don't Capture Http Status 2xx

**URL:** <https://discuss.elastic.co/t/apm-net-agent-dont-capture-http-status-2xx/211339>\
**Category:** APM\
**Tags:** dotnet\
**Created:** [December 10, 2019, 5:02pm UTC](https://discuss.elastic.co/t/apm-net-agent-dont-capture-http-status-2xx/211339 "2019-12-10T17:02:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![luisfernandomoraes](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luisfernandomoraes/32/59138_2.png) [@luisfernandomoraes](https://discuss.elastic.co/u/luisfernandomoraes)\
**Post date:** [December 10, 2019, 5:02pm UTC](https://discuss.elastic.co/t/apm-net-agent-dont-capture-http-status-2xx/211339/1 "2019-12-10T17:02:02Z")

</div>

**Kibana version** :  
7.1.1  
**Elasticsearch version** :  
7.1.1  
**APM Server version** :  
7.1.1  
**APM Agent language and version** :  
Elastic.Apm.NetCoreAll v1.2.0  
**Browser version** :  
Google Chrome Version 78.0.3904.108  
**Original install method (e.g. download page, yum, deb, from source, etc.) and version**:  
Docker  
**Fresh install or upgraded from other version?**  
Fresh  
**Is there anything special in your setup?**  
I'm using docker-compose  
**My Issue**

When uploading the application by running docker-compose up, a request that returns status 2xx such as [http://localhost](http://localhost):xxxx/hc is not being captured by the APM agent but a request that returns a 404 for example [http://localhost](http://localhost):xxxx/foo/bar is being logged by APM.

> **[luisfernandomoraes/Way2CodeChallenge](https://github.com/luisfernandomoraes/Way2CodeChallenge)**
>
> Desafio de código da Way2. Contribute to luisfernandomoraes/Way2CodeChallenge development by creating an account on GitHub.

 ![apm](https://us1.discourse-cdn.com/elastic/original/3X/7/b/7b65b3be2b557a513e625b6f463d4772da94adcb.png)

---

<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:** [December 31, 2019, 1:02pm UTC](https://discuss.elastic.co/t/apm-net-agent-dont-capture-http-status-2xx/211339/2 "2019-12-31T13:02:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![GregKalapos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gregkalapos/32/37205_2.png) [@GregKalapos](https://discuss.elastic.co/u/GregKalapos)\
**Post date:** [January 2, 2020, 8:17pm UTC](https://discuss.elastic.co/t/apm-net-agent-dont-capture-http-status-2xx/211339/3 "2020-01-02T20:17:01Z")

</div>

I just noticed that this did not get any response here.

We discussed this on GitHub and we also found what the problems was: [https://github.com/elastic/apm-agent-dotnet/issues/651](https://github.com/elastic/apm-agent-dotnet/issues/651)
