{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/1468","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/1468/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/1468/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/1468/events","html_url":"https://github.com/hashicorp/consul/issues/1468","id":120370043,"number":1468,"title":"HTTP Status code in check HTTP API","user":{"login":"hadrienk","id":207345,"avatar_url":"https://avatars.githubusercontent.com/u/207345?v=3","gravatar_id":"","url":"https://api.github.com/users/hadrienk","html_url":"https://github.com/hadrienk","followers_url":"https://api.github.com/users/hadrienk/followers","following_url":"https://api.github.com/users/hadrienk/following{/other_user}","gists_url":"https://api.github.com/users/hadrienk/gists{/gist_id}","starred_url":"https://api.github.com/users/hadrienk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadrienk/subscriptions","organizations_url":"https://api.github.com/users/hadrienk/orgs","repos_url":"https://api.github.com/users/hadrienk/repos","events_url":"https://api.github.com/users/hadrienk/events{/privacy}","received_events_url":"https://api.github.com/users/hadrienk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-12-04T10:04:21Z","updated_at":"2015-12-04T21:52:41Z","closed_at":null,"body":"Hi, \r\n\r\nWouldn't it be very interesting to have the possibility to query the HTTP check API for status and get a status code that reflects the state of the check?\r\n\r\nThis would allow to define services depending on other services for example."},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/162092203","html_url":"https://github.com/hashicorp/consul/issues/1468#issuecomment-162092203","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/1468","id":162092203,"user":{"login":"hadrienk","id":207345,"avatar_url":"https://avatars.githubusercontent.com/u/207345?v=3","gravatar_id":"","url":"https://api.github.com/users/hadrienk","html_url":"https://github.com/hadrienk","followers_url":"https://api.github.com/users/hadrienk/followers","following_url":"https://api.github.com/users/hadrienk/following{/other_user}","gists_url":"https://api.github.com/users/hadrienk/gists{/gist_id}","starred_url":"https://api.github.com/users/hadrienk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hadrienk/subscriptions","organizations_url":"https://api.github.com/users/hadrienk/orgs","repos_url":"https://api.github.com/users/hadrienk/repos","events_url":"https://api.github.com/users/hadrienk/events{/privacy}","received_events_url":"https://api.github.com/users/hadrienk/received_events","type":"User","site_admin":false},"created_at":"2015-12-04T21:52:41Z","updated_at":"2015-12-04T21:52:41Z","body":"Yes that wpuld certainly be a problem. \r\nBut what meant is to add new API endpoints, or a parameter on the existing ones to activate this behaviour."}}