Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing Http.Error with task requests #72

Open
dullbananas opened this issue Jul 4, 2020 · 1 comment
Open

Accessing Http.Error with task requests #72

dullbananas opened this issue Jul 4, 2020 · 1 comment

Comments

@dullbananas
Copy link

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

@choonkeat
Copy link

http/src/Http.elm

Lines 538 to 543 in 34a9a27

type Error
= BadUrl String
| Timeout
| NetworkError
| BadStatus Int
| BadBody String

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

Alternatives are

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants