{"action":"created","issue":{"url":"https://api.github.com/repos/ruby-amqp/rabbitmq_http_api_client/issues/20","labels_url":"https://api.github.com/repos/ruby-amqp/rabbitmq_http_api_client/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/ruby-amqp/rabbitmq_http_api_client/issues/20/comments","events_url":"https://api.github.com/repos/ruby-amqp/rabbitmq_http_api_client/issues/20/events","html_url":"https://github.com/ruby-amqp/rabbitmq_http_api_client/issues/20","id":79931244,"number":20,"title":"Not able to detect 401 unauthorised","user":{"login":"hackeron","id":578881,"avatar_url":"https://avatars.githubusercontent.com/u/578881?v=3","gravatar_id":"","url":"https://api.github.com/users/hackeron","html_url":"https://github.com/hackeron","followers_url":"https://api.github.com/users/hackeron/followers","following_url":"https://api.github.com/users/hackeron/following{/other_user}","gists_url":"https://api.github.com/users/hackeron/gists{/gist_id}","starred_url":"https://api.github.com/users/hackeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackeron/subscriptions","organizations_url":"https://api.github.com/users/hackeron/orgs","repos_url":"https://api.github.com/users/hackeron/repos","events_url":"https://api.github.com/users/hackeron/events{/privacy}","received_events_url":"https://api.github.com/users/hackeron/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-23T19:21:35Z","updated_at":"2015-05-23T19:29:53Z","closed_at":"2015-05-23T19:29:53Z","body":"When I run client.overview, I can see in stderr: \"Faraday::ClientError: the server responded with status 401\"\r\n\r\nI cannot find a programatic way of accessing this however. It would be great if this gem raised an exception for authentication errors or provide some other way to detect this."},"comment":{"url":"https://api.github.com/repos/ruby-amqp/rabbitmq_http_api_client/issues/comments/104937747","html_url":"https://github.com/ruby-amqp/rabbitmq_http_api_client/issues/20#issuecomment-104937747","issue_url":"https://api.github.com/repos/ruby-amqp/rabbitmq_http_api_client/issues/20","id":104937747,"user":{"login":"hackeron","id":578881,"avatar_url":"https://avatars.githubusercontent.com/u/578881?v=3","gravatar_id":"","url":"https://api.github.com/users/hackeron","html_url":"https://github.com/hackeron","followers_url":"https://api.github.com/users/hackeron/followers","following_url":"https://api.github.com/users/hackeron/following{/other_user}","gists_url":"https://api.github.com/users/hackeron/gists{/gist_id}","starred_url":"https://api.github.com/users/hackeron/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hackeron/subscriptions","organizations_url":"https://api.github.com/users/hackeron/orgs","repos_url":"https://api.github.com/users/hackeron/repos","events_url":"https://api.github.com/users/hackeron/events{/privacy}","received_events_url":"https://api.github.com/users/hackeron/received_events","type":"User","site_admin":false},"created_at":"2015-05-23T19:29:53Z","updated_at":"2015-05-23T19:29:53Z","body":"Oh, sorry, pry just hid this, my mistake - it does raise an exception as expected!"}}