chore: hoppscotch-ui improvements (#3497)

Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
Anwarul Islam
2023-12-06 00:38:44 +06:00
committed by GitHub
parent 18864bfecf
commit 6fa722df7b
69 changed files with 726 additions and 640 deletions

View File

@@ -14,19 +14,19 @@ export default function (responseStatus) {
if (responseStatus >= 300 && responseStatus < 400)
return {
name: "redirection",
className: "redir-response",
className: "redirect-response",
}
if (responseStatus >= 400 && responseStatus < 500)
return {
name: "client error",
className: "cl-error-response",
className: "critical-error-response",
}
if (responseStatus >= 500 && responseStatus < 600)
return {
name: "server error",
className: "sv-error-response",
className: "server-error-response",
}
// this object is a catch-all for when no other objects match and should always be last