Skip to content

Commit f074a7d

Browse files
authored
Merge pull request #15 from CodeShellDev/dev
Changed Error Code for Blocked Endpoints
2 parents dee80c1 + 78ba7f3 commit f074a7d

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)