# Wrong response code sent by heartbeat

**URL:** <https://discuss.elastic.co/t/wrong-response-code-sent-by-heartbeat/294132>\
**Category:** Beats\
**Tags:** heartbeat\
**Created:** [January 12, 2022, 9:23am UTC](https://discuss.elastic.co/t/wrong-response-code-sent-by-heartbeat/294132 "2022-01-12T09:23:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fosco](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/fosco/32/94297_2.png) [@Fosco](https://discuss.elastic.co/u/Fosco)\
**Post date:** [January 12, 2022, 9:23am UTC](https://discuss.elastic.co/t/wrong-response-code-sent-by-heartbeat/294132/1 "2022-01-12T09:23:40Z")

</div>

Hello,  
I am using heartbeat to retrieve the code 200 from a website, but for the moment the website is returning a 500 code. But heartbeat is returning 200..

I am using the 7.10.2 version of heartbeat (on the 7.9.2 it's working 0.o)

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/7/1/7152c9ebb5577053e173bb9d24a89dcaaba4e165.png)

```auto
- type: http
  name: APP-NAME
  schedule: '@every 300s'
  hosts: ["https://xx.xx.net/xx/xx/xx"]
  username: "xxx"
  password: "xxxx"
  check.response:
    status: 200

```

Thanks

---

<div class="post-metadata">

**Author:** ![Andrew\_Cholakian1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andrew_cholakian1/32/3612_2.png) [@Andrew\_Cholakian1](https://discuss.elastic.co/u/Andrew_Cholakian1)\
**Post date:** [January 12, 2022, 8:29pm UTC](https://discuss.elastic.co/t/wrong-response-code-sent-by-heartbeat/294132/2 "2022-01-12T20:29:03Z")

</div>

Can you validate that this is still occurring with the latest 7.16.2 release?

---

<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:** [February 9, 2022, 10:29pm UTC](https://discuss.elastic.co/t/wrong-response-code-sent-by-heartbeat/294132/3 "2022-02-09T22:29:57Z")

</div>

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