Split the http error content into every possible error type

This commit is contained in:
Tessa Kelly 2021-05-14 14:16:02 -07:00
parent 45cdfa57f0
commit 44408e9cbe

View File

@ -527,7 +527,30 @@ contentToHtml content =
Html html_ ->
html_
HttpError error_ ->
HttpError (Http.BadUrl _) ->
[]
HttpError Http.Timeout ->
-- TODO!
[]
HttpError Http.NetworkError ->
-- TODO!
[]
HttpError (Http.BadStatus 401) ->
-- TODO!
[]
HttpError (Http.BadStatus 404) ->
-- TODO!
[]
HttpError (Http.BadStatus status) ->
-- TODO!
[]
HttpError (Http.BadBody body) ->
-- TODO!
[]