{"action":"closed","issue":{"url":"https://api.github.com/repos/lukewestby/elm-http-extra/issues/1","labels_url":"https://api.github.com/repos/lukewestby/elm-http-extra/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/lukewestby/elm-http-extra/issues/1/comments","events_url":"https://api.github.com/repos/lukewestby/elm-http-extra/issues/1/events","html_url":"https://github.com/lukewestby/elm-http-extra/issues/1","id":129078087,"number":1,"title":"Return response body of non-200 requests","user":{"login":"vilterp","id":7341,"avatar_url":"https://avatars.githubusercontent.com/u/7341?v=3","gravatar_id":"","url":"https://api.github.com/users/vilterp","html_url":"https://github.com/vilterp","followers_url":"https://api.github.com/users/vilterp/followers","following_url":"https://api.github.com/users/vilterp/following{/other_user}","gists_url":"https://api.github.com/users/vilterp/gists{/gist_id}","starred_url":"https://api.github.com/users/vilterp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vilterp/subscriptions","organizations_url":"https://api.github.com/users/vilterp/orgs","repos_url":"https://api.github.com/users/vilterp/repos","events_url":"https://api.github.com/users/vilterp/events{/privacy}","received_events_url":"https://api.github.com/users/vilterp/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-27T09:07:50Z","updated_at":"2016-01-27T16:00:13Z","closed_at":"2016-01-27T16:00:13Z","body":"Use case: I'm building a test harness in Elm for an API that returns 400 Bad Requests a lot with a helpful error message as the body and need to display that error message in the UI.\r\n\r\nNot sure exactly what the API should look like — maybe allow providing a decoder for errors as well, or just make an `Error` type in which the `BadResponse` constructor contains a `Body`?"}}