-
Notifications
You must be signed in to change notification settings - Fork 40
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
An easy way to avoid throwing on non-200 statuses #52
Comments
If you don’t want to define an instance of |
Does this answer your question? Can we close this one? |
Ah, I see. Thank you very much for helping @mrkkrp, good to close! |
This is also shown in the docs and readme 😉 |
@mrkkrp right, just checked Haddock and found mentions of
Maybe it's worth adding a small note or example? TBH, I was pretty surprised to receive an exception on non-200 response, not exactly the default of a least surprise. Anyway, sorry for the silly question. I'm new to Haskell and its ecosystem and failed to figure out from the first try how |
Ah, sorry I just was thinking about |
With vanilla Network.HTTP.Client one can just
setRequestIgnoreStatus
. It looks like that with req I'd need to defineMonadHttp
withhandleHttpException
, but this looks like too much hassle if I just want to run requests in IO and handle all responses irregardless of their status codes.Am I missing something in the config?
The text was updated successfully, but these errors were encountered: