fix: use StatusUnauthorized

This commit is contained in:
Derrick Hammer 2024-03-20 14:44:28 -04:00
parent 52a1f18c60
commit da19a2e287
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ func AuthMiddleware(options AuthMiddlewareOptions) func(http.Handler) http.Handl
} }
if unauthorized { if unauthorized {
http.Error(w, err.Error(), http.StatusInternalServerError) http.Error(w, err.Error(), http.StatusUnauthorized)
return return
} }
} }