{"action":"created","issue":{"url":"https://api.github.com/repos/square/retrofit/issues/989","labels_url":"https://api.github.com/repos/square/retrofit/issues/989/labels{/name}","comments_url":"https://api.github.com/repos/square/retrofit/issues/989/comments","events_url":"https://api.github.com/repos/square/retrofit/issues/989/events","html_url":"https://github.com/square/retrofit/issues/989","id":98852660,"number":989,"title":"Make possible return Response object in case of error response","user":{"login":"avarabyeu","id":1565439,"avatar_url":"https://avatars.githubusercontent.com/u/1565439?v=3","gravatar_id":"","url":"https://api.github.com/users/avarabyeu","html_url":"https://github.com/avarabyeu","followers_url":"https://api.github.com/users/avarabyeu/followers","following_url":"https://api.github.com/users/avarabyeu/following{/other_user}","gists_url":"https://api.github.com/users/avarabyeu/gists{/gist_id}","starred_url":"https://api.github.com/users/avarabyeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avarabyeu/subscriptions","organizations_url":"https://api.github.com/users/avarabyeu/orgs","repos_url":"https://api.github.com/users/avarabyeu/repos","events_url":"https://api.github.com/users/avarabyeu/events{/privacy}","received_events_url":"https://api.github.com/users/avarabyeu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-03T22:48:14Z","updated_at":"2015-08-07T14:57:44Z","closed_at":null,"body":"Basically, i need possibility to specify some custom error handler which is not throwing exceptions. \r\nI would like to obtain Response object and decide by yourself whether throw exception or not. For now, if ErrorHandler return null instead of exception, IllegalStateException is appeared."},"comment":{"url":"https://api.github.com/repos/square/retrofit/issues/comments/128723538","html_url":"https://github.com/square/retrofit/issues/989#issuecomment-128723538","issue_url":"https://api.github.com/repos/square/retrofit/issues/989","id":128723538,"user":{"login":"avarabyeu","id":1565439,"avatar_url":"https://avatars.githubusercontent.com/u/1565439?v=3","gravatar_id":"","url":"https://api.github.com/users/avarabyeu","html_url":"https://github.com/avarabyeu","followers_url":"https://api.github.com/users/avarabyeu/followers","following_url":"https://api.github.com/users/avarabyeu/following{/other_user}","gists_url":"https://api.github.com/users/avarabyeu/gists{/gist_id}","starred_url":"https://api.github.com/users/avarabyeu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avarabyeu/subscriptions","organizations_url":"https://api.github.com/users/avarabyeu/orgs","repos_url":"https://api.github.com/users/avarabyeu/repos","events_url":"https://api.github.com/users/avarabyeu/events{/privacy}","received_events_url":"https://api.github.com/users/avarabyeu/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T14:57:44Z","updated_at":"2015-08-07T14:57:44Z","body":"@caseykulm ErrorHandler has the following method signature:\r\n\r\n Throwable handleError(RetrofitError cause);\r\n\r\nSo, you need to return Throwable. In my case i don't need any exception to be thrown. I need Response object to be returned even if status code is 4xx or 5xxx"}}