hercules-ci / elm-hercules-extras / Http.Extras

Convenience functions for working with elm/http

Asserting status

isStatus : Basics.Int -> Http.Error -> Basics.Bool

Given an expected status code, return True if that's the given Http error.

is401 : Http.Error -> Basics.Bool

Do we have a HTTP 401 response?

Rendering Http.Error

errorToString : Http.Error -> String

Render HTTP error to a string. Useful for showing the user what happened.