{"action":"opened","issue":{"url":"https://api.github.com/repos/Mashape/unirest-java/issues/182","repository_url":"https://api.github.com/repos/Mashape/unirest-java","labels_url":"https://api.github.com/repos/Mashape/unirest-java/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/Mashape/unirest-java/issues/182/comments","events_url":"https://api.github.com/repos/Mashape/unirest-java/issues/182/events","html_url":"https://github.com/Mashape/unirest-java/issues/182","id":190949964,"number":182,"title":"Process error response body","user":{"login":"petrdvorak","id":516597,"avatar_url":"https://avatars.githubusercontent.com/u/516597?v=3","gravatar_id":"","url":"https://api.github.com/users/petrdvorak","html_url":"https://github.com/petrdvorak","followers_url":"https://api.github.com/users/petrdvorak/followers","following_url":"https://api.github.com/users/petrdvorak/following{/other_user}","gists_url":"https://api.github.com/users/petrdvorak/gists{/gist_id}","starred_url":"https://api.github.com/users/petrdvorak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrdvorak/subscriptions","organizations_url":"https://api.github.com/users/petrdvorak/orgs","repos_url":"https://api.github.com/users/petrdvorak/repos","events_url":"https://api.github.com/users/petrdvorak/events{/privacy}","received_events_url":"https://api.github.com/users/petrdvorak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-22T09:41:04Z","updated_at":"2016-11-22T09:41:04Z","closed_at":null,"body":"Our RESTful API can return either 200-OK response, or a 400-BadRequest response. Both of these can have a response body - one of a `OKResponse` type, other of `ErrorResponse` type.\r\n\r\nIt would be nice to document how to process this API with unirest - how do I serialize `OKResponse` when server returns 200-OK, and how do I serialize `ErrorResponse` in case of 400-BadRequest."}}
{"actor":{"display_login":"petrdvorak"}}