{"action":"created","issue":{"url":"https://api.github.com/repos/chingor13/json_api_client/issues/135","labels_url":"https://api.github.com/repos/chingor13/json_api_client/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/chingor13/json_api_client/issues/135/comments","events_url":"https://api.github.com/repos/chingor13/json_api_client/issues/135/events","html_url":"https://github.com/chingor13/json_api_client/issues/135","id":112159777,"number":135,"title":"Support for extracting http status code from the http response","user":{"login":"theirishpenguin","id":39653,"avatar_url":"https://avatars.githubusercontent.com/u/39653?v=3","gravatar_id":"","url":"https://api.github.com/users/theirishpenguin","html_url":"https://github.com/theirishpenguin","followers_url":"https://api.github.com/users/theirishpenguin/followers","following_url":"https://api.github.com/users/theirishpenguin/following{/other_user}","gists_url":"https://api.github.com/users/theirishpenguin/gists{/gist_id}","starred_url":"https://api.github.com/users/theirishpenguin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/theirishpenguin/subscriptions","organizations_url":"https://api.github.com/users/theirishpenguin/orgs","repos_url":"https://api.github.com/users/theirishpenguin/repos","events_url":"https://api.github.com/users/theirishpenguin/events{/privacy}","received_events_url":"https://api.github.com/users/theirishpenguin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-19T14:42:35Z","updated_at":"2015-10-25T22:50:23Z","closed_at":"2015-10-25T22:50:23Z","body":"This could be my lack of understanding but why is the \"meta\" section of the response inspected in order to extract a http status code. Would it not be more correct to get the status code from the response itself?\r\n\r\nhttps://github.com/chingor13/json_api_client/blob/master/lib/json_api_client/middleware/status.rb#L10\r\n\r\n(Perhaps there is a well-known convention of extracting this from the \"meta\" section of responses that I'm not aware of?)\r\n\r\nI can understand extracting http status code from \"errors\" object in the case of multiple errors occurring in a request (as per http://jsonapi.org/format/#errors)."},"comment":{"url":"https://api.github.com/repos/chingor13/json_api_client/issues/comments/150981794","html_url":"https://github.com/chingor13/json_api_client/issues/135#issuecomment-150981794","issue_url":"https://api.github.com/repos/chingor13/json_api_client/issues/135","id":150981794,"user":{"login":"chingor13","id":32483,"avatar_url":"https://avatars.githubusercontent.com/u/32483?v=3","gravatar_id":"","url":"https://api.github.com/users/chingor13","html_url":"https://github.com/chingor13","followers_url":"https://api.github.com/users/chingor13/followers","following_url":"https://api.github.com/users/chingor13/following{/other_user}","gists_url":"https://api.github.com/users/chingor13/gists{/gist_id}","starred_url":"https://api.github.com/users/chingor13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chingor13/subscriptions","organizations_url":"https://api.github.com/users/chingor13/orgs","repos_url":"https://api.github.com/users/chingor13/repos","events_url":"https://api.github.com/users/chingor13/events{/privacy}","received_events_url":"https://api.github.com/users/chingor13/received_events","type":"User","site_admin":false},"created_at":"2015-10-25T22:50:23Z","updated_at":"2015-10-25T22:50:23Z","body":"We already use the http status on https://github.com/chingor13/json_api_client/blob/master/lib/json_api_client/middleware/status.rb#L6"}}