# Root URI Status

**URL:** <https://discuss.elastic.co/t/root-uri-status/21168>\
**Category:** Elasticsearch\
**Created:** [December 9, 2014, 6:30pm UTC](https://discuss.elastic.co/t/root-uri-status/21168 "2014-12-09T18:30:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhughes](https://avatars.discourse-cdn.com/v4/letter/m/85e7bf/32.png) [@mhughes](https://discuss.elastic.co/u/mhughes)\
**Post date:** [December 9, 2014, 6:30pm UTC](https://discuss.elastic.co/t/root-uri-status/21168/1 "2014-12-09T18:30:24Z")

</div>

Could someone clarify the difference between the 'status' field on the root  
URL vs the 'status' field on /\_cluster/health? In this system, the root  
URL returns '200' even though the cluster is in 'yellow' as reported by the  
cluster health check. What does 200 mean here? What are other possible  
values?

~$ curl localhost:9200/\_cluster/health?pretty=true  
{  
"cluster\_name" : "elasticsearch",  
"status" : "yellow",  
"timed\_out" : false,  
"number\_of\_nodes" : 1,  
"number\_of\_data\_nodes" : 1,  
"active\_primary\_shards" : 25,  
"active\_shards" : 25,  
"relocating\_shards" : 0,  
"initializing\_shards" : 0,  
"unassigned\_shards" : 25  
}

~$ curl localhost:9200/  
{  
"status" : 200,  
"name" : "elk1",  
"cluster\_name" : "elasticsearch",  
"version" : {  
"number" : "1.4.1",  
"build\_hash" : "89d3241d670db65f994242c8e8383b169779e2d4",  
"build\_timestamp" : "2014-11-26T15:49:29Z",  
"build\_snapshot" : false,  
"lucene\_version" : "4.10.2"  
},  
"tagline" : "You Know, for Search"  
}

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0e894f4a-faa2-4fe7-8176-a7a1cc846570%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0e894f4a-faa2-4fe7-8176-a7a1cc846570%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Jaguar](https://avatars.discourse-cdn.com/v4/letter/j/4af34b/32.png) [@Jaguar](https://discuss.elastic.co/u/Jaguar)\
**Post date:** [December 10, 2014, 4:00am UTC](https://discuss.elastic.co/t/root-uri-status/21168/2 "2014-12-10T04:00:01Z")

</div>

The value “200” to me is http response code. You can find other value if  
your node can’t join the cluster, 503 in such case.

Cheers!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAP0hgQ1HHMqo1iDOOmNfeTeQAU%2B%3DVtCaiLMuOjUkaY1RzS7X6A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAP0hgQ1HHMqo1iDOOmNfeTeQAU%2B%3DVtCaiLMuOjUkaY1RzS7X6A%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 10, 2014, 10:21am UTC](https://discuss.elastic.co/t/root-uri-status/21168/3 "2014-12-10T10:21:41Z")

</div>

Actually as we are also providing this http response code within http response itself, it does not really make sense to keep it in the JSON response.  
It will be removed in elasticsearch 2.0. PR coming here: [Remove `status` code from main action `/` by dadoonet · Pull Request #8865 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/pull/8865) [https://github.com/elasticsearch/elasticsearch/pull/8865](https://github.com/elasticsearch/elasticsearch/pull/8865)

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)

> Le 10 déc. 2014 à 05:00, 熊贻青 [xiong.jaguar@gmail.com](mailto:xiong.jaguar@gmail.com) a écrit :
> 
> The value “200” to me is http response code. You can find other value if your node can’t join the cluster, 503 in such case.
> 
> Cheers!
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAP0hgQ1HHMqo1iDOOmNfeTeQAU%2B%3DVtCaiLMuOjUkaY1RzS7X6A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAP0hgQ1HHMqo1iDOOmNfeTeQAU%2B%3DVtCaiLMuOjUkaY1RzS7X6A%40mail.gmail.com) [https://groups.google.com/d/msgid/elasticsearch/CAP0hgQ1HHMqo1iDOOmNfeTeQAU%2B%3DVtCaiLMuOjUkaY1RzS7X6A%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAP0hgQ1HHMqo1iDOOmNfeTeQAU%2B%3DVtCaiLMuOjUkaY1RzS7X6A%40mail.gmail.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/C13F97E2-D7C4-4474-8356-2B81387DF54E%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/C13F97E2-D7C4-4474-8356-2B81387DF54E%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:44am UTC](https://discuss.elastic.co/t/root-uri-status/21168/4 "2017-07-06T00:44:33Z")

</div>


