{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/1025","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/1025/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/1025/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/1025/events","html_url":"https://github.com/hashicorp/consul/issues/1025","id":87684216,"number":1025,"title":"Leader Status Check, HTTP status","user":{"login":"robrankin","id":1881181,"avatar_url":"https://avatars.githubusercontent.com/u/1881181?v=3","gravatar_id":"","url":"https://api.github.com/users/robrankin","html_url":"https://github.com/robrankin","followers_url":"https://api.github.com/users/robrankin/followers","following_url":"https://api.github.com/users/robrankin/following{/other_user}","gists_url":"https://api.github.com/users/robrankin/gists{/gist_id}","starred_url":"https://api.github.com/users/robrankin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robrankin/subscriptions","organizations_url":"https://api.github.com/users/robrankin/orgs","repos_url":"https://api.github.com/users/robrankin/repos","events_url":"https://api.github.com/users/robrankin/events{/privacy}","received_events_url":"https://api.github.com/users/robrankin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-12T10:27:49Z","updated_at":"2015-06-12T17:51:41Z","closed_at":null,"body":"Currently if the cluster has no leader, the `/v1/status/leader` endpoint returns HTTP 200.  Should this be changed to be an HTTP 5xx status?\r\n\r\nThe `/v1/health/service/consul` endpoint returns a 5xx status when the cluster is without a leader, seems to make sense the `/v1/status/leader` endpoint should too?"},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/111574119","html_url":"https://github.com/hashicorp/consul/issues/1025#issuecomment-111574119","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/1025","id":111574119,"user":{"login":"highlyunavailable","id":6266125,"avatar_url":"https://avatars.githubusercontent.com/u/6266125?v=3","gravatar_id":"","url":"https://api.github.com/users/highlyunavailable","html_url":"https://github.com/highlyunavailable","followers_url":"https://api.github.com/users/highlyunavailable/followers","following_url":"https://api.github.com/users/highlyunavailable/following{/other_user}","gists_url":"https://api.github.com/users/highlyunavailable/gists{/gist_id}","starred_url":"https://api.github.com/users/highlyunavailable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/highlyunavailable/subscriptions","organizations_url":"https://api.github.com/users/highlyunavailable/orgs","repos_url":"https://api.github.com/users/highlyunavailable/repos","events_url":"https://api.github.com/users/highlyunavailable/events{/privacy}","received_events_url":"https://api.github.com/users/highlyunavailable/received_events","type":"User","site_admin":false},"created_at":"2015-06-12T17:51:41Z","updated_at":"2015-06-12T17:51:41Z","body":"I would say that if there is no leader the response should be emptystring rather than 500 since the leader was successfully determined but there is no leader."}}