summaryrefslogtreecommitdiff
path: root/router/router.go
diff options
context:
space:
mode:
authorBobby <[email protected]>2025-12-23 17:19:03 +0530
committerBobby <[email protected]>2025-12-23 17:19:03 +0530
commit8b59414ced114efcaee42f3711adf29ee84cfcf3 (patch)
tree1ea5d26da4c4d78e94dc0ca9556243f317fb0f9e /router/router.go
parent93279b718bc7f9fb89aa329b7dbcc55d6e909b3e (diff)
downloadlain-8b59414ced114efcaee42f3711adf29ee84cfcf3.tar.xz
lain-8b59414ced114efcaee42f3711adf29ee84cfcf3.zip
added folder icons
Diffstat (limited to 'router/router.go')
-rw-r--r--router/router.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/router/router.go b/router/router.go
index 62a7576..51c039f 100644
--- a/router/router.go
+++ b/router/router.go
@@ -22,14 +22,14 @@ func ErrorHandler(ctx *fiber.Ctx, err error) error {
switch code {
case fiber.StatusBadRequest:
return controllers.BadRequest(ctx, err)
+ case fiber.StatusUnauthorized:
+ return controllers.Unauthorized(ctx, err)
case fiber.StatusForbidden:
return controllers.Forbidden(ctx, err)
- case fiber.StatusInternalServerError:
- return controllers.InternalServerError(ctx, err)
case fiber.StatusNotFound:
return controllers.NotFound(ctx, err)
- case fiber.StatusUnauthorized:
- return controllers.Unauthorized(ctx, err)
+ case fiber.StatusInternalServerError:
+ return controllers.InternalServerError(ctx, err)
default:
return controllers.DefaultError(ctx, err)
}