From 44408e9cbe2a01b03bc10074703547446dda82b3 Mon Sep 17 00:00:00 2001 From: Tessa Kelly Date: Fri, 14 May 2021 14:16:02 -0700 Subject: [PATCH] Split the http error content into every possible error type --- src/Nri/Ui/Message/V3.elm | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/Nri/Ui/Message/V3.elm b/src/Nri/Ui/Message/V3.elm index 68fb3cb5..095c2ecf 100644 --- a/src/Nri/Ui/Message/V3.elm +++ b/src/Nri/Ui/Message/V3.elm @@ -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! []