diff --git a/api/middleware/middleware.go b/api/middleware/middleware.go index 96a161d..496e4b2 100644 --- a/api/middleware/middleware.go +++ b/api/middleware/middleware.go @@ -171,7 +171,7 @@ func AuthMiddleware(options AuthMiddlewareOptions) func(http.Handler) http.Handl } if unauthorized { - http.Error(w, err.Error(), http.StatusInternalServerError) + http.Error(w, err.Error(), http.StatusUnauthorized) return } }