Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: wrong error type (#681)

Zilong Zhouf99defb58567
diff --git a/server/auth.go b/server/auth.go
index b3b890bd83..8a8e719fff 100644
--- a/server/auth.go
+++ b/server/auth.go
@@ -97,7 +97,7 @@ func (s *Server) registerAuthRoutes(g *echo.Group) {
// we only allow active user to login via gitlab
if GitlabUserInfo.State != vcsPlugin.StateActive {
- return echo.NewHTTPError(http.StatusInternalServerError, "Fail to login via Gitlab, user is Archived")
+ return echo.NewHTTPError(http.StatusUnauthorized, "Fail to login via Gitlab, user is Archived")
}
principalFind := &api.PrincipalFind{