hercules-ci/elm-hercules-extras/1.0.0

Http.Extras

Convenience functions for working with elm/http

Asserting status

isStatus : Int -> Error -> Bool

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

is401 : Error -> Bool

Do we have a HTTP 401 response?

Rendering Http.Error

errorToString : Error -> String

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