elm / http

Make HTTP requests in Elm
https://package.elm-lang.org/packages/elm/http/latest
BSD 3-Clause "New" or "Revised" License
155 stars 46 forks source link

Accessing `Http.Error` with task requests #72

Open dullbananas opened 4 years ago

dullbananas commented 4 years ago

task doesn't appear to provide any way of getting Http.Error values when errors occur.

choonkeat commented 1 year ago

https://github.com/elm/http/blob/34a9a27411c2492d3e247ac75cd48e22b473bef5/src/Http.elm#L538-L543

important values like response body when http status != 2xx and http headers are not stored in the Http.Error values at all

Alternatives are