Add HTTP 413 to normal errors to not log

This commit is contained in:
binwiederhier
2026-03-16 10:27:23 -04:00
parent 3a37ea32f7
commit df82fdf44c
5 changed files with 22 additions and 23 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ const (
)
var (
normalErrorCodes = []int{http.StatusNotFound, http.StatusBadRequest, http.StatusTooManyRequests, http.StatusUnauthorized, http.StatusForbidden, http.StatusInsufficientStorage}
normalErrorCodes = []int{http.StatusNotFound, http.StatusBadRequest, http.StatusTooManyRequests, http.StatusUnauthorized, http.StatusForbidden, http.StatusInsufficientStorage, http.StatusRequestEntityTooLarge}
rateLimitingErrorCodes = []int{http.StatusTooManyRequests, http.StatusRequestEntityTooLarge}
)