{"action":"created","issue":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1856","repository_url":"https://api.github.com/repos/Alamofire/Alamofire","labels_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1856/labels{/name}","comments_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1856/comments","events_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1856/events","html_url":"https://github.com/Alamofire/Alamofire/issues/1856","id":196258983,"number":1856,"title":"ResponseValidationFailureReason.unacceptableStatusCode should have the response body","user":{"login":"jbeder","id":1059334,"avatar_url":"https://avatars3.githubusercontent.com/u/1059334?v=3","gravatar_id":"","url":"https://api.github.com/users/jbeder","html_url":"https://github.com/jbeder","followers_url":"https://api.github.com/users/jbeder/followers","following_url":"https://api.github.com/users/jbeder/following{/other_user}","gists_url":"https://api.github.com/users/jbeder/gists{/gist_id}","starred_url":"https://api.github.com/users/jbeder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbeder/subscriptions","organizations_url":"https://api.github.com/users/jbeder/orgs","repos_url":"https://api.github.com/users/jbeder/repos","events_url":"https://api.github.com/users/jbeder/events{/privacy}","received_events_url":"https://api.github.com/users/jbeder/received_events","type":"User","site_admin":false},"labels":[{"id":206929268,"url":"https://api.github.com/repos/Alamofire/Alamofire/labels/support","name":"support","color":"FC6808","default":false}],"state":"closed","locked":false,"assignee":{"login":"jshier","id":51020,"avatar_url":"https://avatars3.githubusercontent.com/u/51020?v=3","gravatar_id":"","url":"https://api.github.com/users/jshier","html_url":"https://github.com/jshier","followers_url":"https://api.github.com/users/jshier/followers","following_url":"https://api.github.com/users/jshier/following{/other_user}","gists_url":"https://api.github.com/users/jshier/gists{/gist_id}","starred_url":"https://api.github.com/users/jshier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshier/subscriptions","organizations_url":"https://api.github.com/users/jshier/orgs","repos_url":"https://api.github.com/users/jshier/repos","events_url":"https://api.github.com/users/jshier/events{/privacy}","received_events_url":"https://api.github.com/users/jshier/received_events","type":"User","site_admin":false},"assignees":[{"login":"jshier","id":51020,"avatar_url":"https://avatars3.githubusercontent.com/u/51020?v=3","gravatar_id":"","url":"https://api.github.com/users/jshier","html_url":"https://github.com/jshier","followers_url":"https://api.github.com/users/jshier/followers","following_url":"https://api.github.com/users/jshier/following{/other_user}","gists_url":"https://api.github.com/users/jshier/gists{/gist_id}","starred_url":"https://api.github.com/users/jshier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshier/subscriptions","organizations_url":"https://api.github.com/users/jshier/orgs","repos_url":"https://api.github.com/users/jshier/repos","events_url":"https://api.github.com/users/jshier/events{/privacy}","received_events_url":"https://api.github.com/users/jshier/received_events","type":"User","site_admin":false}],"milestone":null,"comments":5,"created_at":"2016-12-18T05:25:35Z","updated_at":"2017-05-01T15:30:00Z","closed_at":"2016-12-18T10:40:00Z","body":"Often (especially when debugging) a server will respond with detailed error messages (often including stack traces, etc.) when serving a 400 or 500; when using `validate(200..<300)` (or similar) all that Alamofire gives in the error is, e.g. ```ResponseValidationFailureReason.unacceptableStatusCode(400)```.\r\n\r\nIt would be nice to see the server response body in this error type as well."},"comment":{"url":"https://api.github.com/repos/Alamofire/Alamofire/issues/comments/298354978","html_url":"https://github.com/Alamofire/Alamofire/issues/1856#issuecomment-298354978","issue_url":"https://api.github.com/repos/Alamofire/Alamofire/issues/1856","id":298354978,"user":{"login":"pepasflo","id":25310741,"avatar_url":"https://avatars2.githubusercontent.com/u/25310741?v=3","gravatar_id":"","url":"https://api.github.com/users/pepasflo","html_url":"https://github.com/pepasflo","followers_url":"https://api.github.com/users/pepasflo/followers","following_url":"https://api.github.com/users/pepasflo/following{/other_user}","gists_url":"https://api.github.com/users/pepasflo/gists{/gist_id}","starred_url":"https://api.github.com/users/pepasflo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pepasflo/subscriptions","organizations_url":"https://api.github.com/users/pepasflo/orgs","repos_url":"https://api.github.com/users/pepasflo/repos","events_url":"https://api.github.com/users/pepasflo/events{/privacy}","received_events_url":"https://api.github.com/users/pepasflo/received_events","type":"User","site_admin":false},"created_at":"2017-05-01T15:30:00Z","updated_at":"2017-05-01T15:30:00Z","body":"@jshier I'm not sure I understand, what sort of problems would a very large response body create in the case of e.g. a 500?\r\n\r\n(Also, I have never encountered an API which returns very large bodies for errors.  Is that common enough that it should justify design decisions which affect all users of Alamofire?)"}}
{"actor":{"display_login":"pepasflo"}}