{"action":"created","issue":{"url":"https://api.github.com/repos/lostisland/faraday/issues/590","repository_url":"https://api.github.com/repos/lostisland/faraday","labels_url":"https://api.github.com/repos/lostisland/faraday/issues/590/labels{/name}","comments_url":"https://api.github.com/repos/lostisland/faraday/issues/590/comments","events_url":"https://api.github.com/repos/lostisland/faraday/issues/590/events","html_url":"https://github.com/lostisland/faraday/issues/590","id":159038050,"number":590,"title":"Status Message","user":{"login":"BaneOfSerenity","id":2280933,"avatar_url":"https://avatars.githubusercontent.com/u/2280933?v=3","gravatar_id":"","url":"https://api.github.com/users/BaneOfSerenity","html_url":"https://github.com/BaneOfSerenity","followers_url":"https://api.github.com/users/BaneOfSerenity/followers","following_url":"https://api.github.com/users/BaneOfSerenity/following{/other_user}","gists_url":"https://api.github.com/users/BaneOfSerenity/gists{/gist_id}","starred_url":"https://api.github.com/users/BaneOfSerenity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BaneOfSerenity/subscriptions","organizations_url":"https://api.github.com/users/BaneOfSerenity/orgs","repos_url":"https://api.github.com/users/BaneOfSerenity/repos","events_url":"https://api.github.com/users/BaneOfSerenity/events{/privacy}","received_events_url":"https://api.github.com/users/BaneOfSerenity/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-07T22:18:48Z","updated_at":"2016-07-04T15:19:14Z","closed_at":null,"body":"While using Faraday I noticed that the status code is in the response.status but there is no way to get the status message. When looking at my VCR cassette there is a code and a message being sent back. It would be nice to be able to access this message especially for 4xx and 5xx returns. Also it seem the message is being thrown out early on as it doesn't show up in the response.env either.\r\n```\r\n  response:\r\n    status:\r\n      code: 403\r\n      message: Forbidden\r\n    headers:\r\n      Content-Type:\r\n      - application/json\r\n```"},"comment":{"url":"https://api.github.com/repos/lostisland/faraday/issues/comments/230312625","html_url":"https://github.com/lostisland/faraday/issues/590#issuecomment-230312625","issue_url":"https://api.github.com/repos/lostisland/faraday/issues/590","id":230312625,"user":{"login":"Zorbash","id":645514,"avatar_url":"https://avatars.githubusercontent.com/u/645514?v=3","gravatar_id":"","url":"https://api.github.com/users/Zorbash","html_url":"https://github.com/Zorbash","followers_url":"https://api.github.com/users/Zorbash/followers","following_url":"https://api.github.com/users/Zorbash/following{/other_user}","gists_url":"https://api.github.com/users/Zorbash/gists{/gist_id}","starred_url":"https://api.github.com/users/Zorbash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zorbash/subscriptions","organizations_url":"https://api.github.com/users/Zorbash/orgs","repos_url":"https://api.github.com/users/Zorbash/repos","events_url":"https://api.github.com/users/Zorbash/events{/privacy}","received_events_url":"https://api.github.com/users/Zorbash/received_events","type":"User","site_admin":false},"created_at":"2016-07-04T15:19:13Z","updated_at":"2016-07-04T15:19:13Z","body":"With `response.status` you can get the Integer HTTP status code and you can use `response.body` to get the body of the response which may contain useful info about 4xx/5xx errors. Since the HTTP status text is always known beforehand (eg 403 => Forbidden, 418 => I'm a teapot, ..) why would you need it to be accessible from the response object?"}}
{"actor":{"display_login":"Zorbash"}}