Skip to content

Commit 8e7d2a5

Browse files
committed
changed 401 to 403
Obfuscation not needed since Bad Auth already gives feedback by returning a Auth Prompt. -> No advantages by leaving it on error code 401
1 parent bc9e03a commit 8e7d2a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internals/proxy/middlewares/endpoints.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func (data EndpointsMiddleware) Use() http.Handler {
2121

2222
if slices.Contains(BLOCKED_ENDPOINTS, reqPath) {
2323
log.Warn("User tried to access blocked endpoint: ", reqPath)
24-
http.Error(w, "Unauthorized", http.StatusUnauthorized)
24+
http.Error(w, "Forbidden", http.StatusForbidden)
2525
return
2626
}
2727

0 commit comments

Comments
 (0)