# Cluster health endpoint responses

**URL:** <https://discuss.elastic.co/t/cluster-health-endpoint-responses/195726>\
**Category:** Elasticsearch\
**Created:** [August 19, 2019, 11:14am UTC](https://discuss.elastic.co/t/cluster-health-endpoint-responses/195726 "2019-08-19T11:14:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kanadaj](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kanadaj/32/46868_2.png) [@kanadaj](https://discuss.elastic.co/u/kanadaj)\
**Post date:** [August 19, 2019, 11:14am UTC](https://discuss.elastic.co/t/cluster-health-endpoint-responses/195726/1 "2019-08-19T11:14:49Z")

</div>

Hey there, a quick question here:

I'm trying to add an automatic health check endpoint to our web application so we can indicate on our status page whether services based around ElasticSearch are down. How would the Cluster Health endpoint's response differ if a node went down (i.e. primary shard failover is in progress) versus when elasticsearch is plain unable to answer requests?

In addition, would the NEST client throw an error if it receives a Bad Gateway or Internal Server Error from all endpoints?

---

<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:** [September 16, 2019, 11:26am UTC](https://discuss.elastic.co/t/cluster-health-endpoint-responses/195726/2 "2019-09-16T11:26:18Z")

</div>

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