mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-12-02 23:52:22 +03:00
Split the http error content into every possible error type
This commit is contained in:
parent
45cdfa57f0
commit
44408e9cbe
@ -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!
|
||||
[]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user