diff options
| author | Bobby <[email protected]> | 2025-12-23 17:19:03 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-12-23 17:19:03 +0530 |
| commit | 8b59414ced114efcaee42f3711adf29ee84cfcf3 (patch) | |
| tree | 1ea5d26da4c4d78e94dc0ca9556243f317fb0f9e /router | |
| parent | 93279b718bc7f9fb89aa329b7dbcc55d6e909b3e (diff) | |
| download | lain-8b59414ced114efcaee42f3711adf29ee84cfcf3.tar.xz lain-8b59414ced114efcaee42f3711adf29ee84cfcf3.zip | |
added folder icons
Diffstat (limited to 'router')
| -rw-r--r-- | router/router.go | 8 |
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) } |
