{"action":"created","issue":{"url":"https://api.github.com/repos/aserafin/grape_logging/issues/10","repository_url":"https://api.github.com/repos/aserafin/grape_logging","labels_url":"https://api.github.com/repos/aserafin/grape_logging/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/aserafin/grape_logging/issues/10/comments","events_url":"https://api.github.com/repos/aserafin/grape_logging/issues/10/events","html_url":"https://github.com/aserafin/grape_logging/pull/10","id":96805863,"number":10,"title":"Make sure response status is always available","user":{"login":"terceiro","id":30027,"avatar_url":"https://avatars.githubusercontent.com/u/30027?v=3","gravatar_id":"","url":"https://api.github.com/users/terceiro","html_url":"https://github.com/terceiro","followers_url":"https://api.github.com/users/terceiro/followers","following_url":"https://api.github.com/users/terceiro/following{/other_user}","gists_url":"https://api.github.com/users/terceiro/gists{/gist_id}","starred_url":"https://api.github.com/users/terceiro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terceiro/subscriptions","organizations_url":"https://api.github.com/users/terceiro/orgs","repos_url":"https://api.github.com/users/terceiro/repos","events_url":"https://api.github.com/users/terceiro/events{/privacy}","received_events_url":"https://api.github.com/users/terceiro/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-23T12:50:02Z","updated_at":"2016-03-06T16:56:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/aserafin/grape_logging/pulls/10","html_url":"https://github.com/aserafin/grape_logging/pull/10","diff_url":"https://github.com/aserafin/grape_logging/pull/10.diff","patch_url":"https://github.com/aserafin/grape_logging/pull/10.patch"},"body":"Sometimes `response` is not what you think it is. `@app_response` is\r\nalways a proper Rack::Response object so it's safe to get its status.\r\n\r\nSee https://github.com/intridea/grape/issues/1059"},"comment":{"url":"https://api.github.com/repos/aserafin/grape_logging/issues/comments/192932342","html_url":"https://github.com/aserafin/grape_logging/pull/10#issuecomment-192932342","issue_url":"https://api.github.com/repos/aserafin/grape_logging/issues/10","id":192932342,"user":{"login":"guizmaii","id":1193670,"avatar_url":"https://avatars.githubusercontent.com/u/1193670?v=3","gravatar_id":"","url":"https://api.github.com/users/guizmaii","html_url":"https://github.com/guizmaii","followers_url":"https://api.github.com/users/guizmaii/followers","following_url":"https://api.github.com/users/guizmaii/following{/other_user}","gists_url":"https://api.github.com/users/guizmaii/gists{/gist_id}","starred_url":"https://api.github.com/users/guizmaii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guizmaii/subscriptions","organizations_url":"https://api.github.com/users/guizmaii/orgs","repos_url":"https://api.github.com/users/guizmaii/repos","events_url":"https://api.github.com/users/guizmaii/events{/privacy}","received_events_url":"https://api.github.com/users/guizmaii/received_events","type":"User","site_admin":false},"created_at":"2016-03-06T16:56:44Z","updated_at":"2016-03-06T16:56:44Z","body":"Your fix does not work. For example if an exception is thrown a HTTP 500 answer will be sended and the `@app_response` will be nil. \r\nI'm currently searching a solution for that problem and asked for help in the grape repo : https://github.com/ruby-grape/grape/issues/1301"}}