From: Willy Tarreau Date: Thu, 11 Jan 2024 11:06:49 +0000 (+0100) Subject: MEDIUM: http: add the ability to redefine http-err-codes and http-fail-codes X-Git-Tag: v3.0-dev2~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cc25f26f94859bf4dbc2d036d9d23e5a5a7a2de;p=thirdparty%2Fhaproxy.git MEDIUM: http: add the ability to redefine http-err-codes and http-fail-codes The new global keywords "http-err-codes" and "http-fail-codes" allow to redefine which HTTP status codes indicate a client-induced error or a server error, as tracked by stick-table counters. This is only done globally, though everything was done so that it could easily be extended to a per-proxy mechanism if there was a real need for this (but it would eat quite more RAM then). A simple reg-test was added (http-err-fail.vtc). --- diff --git a/doc/configuration.txt b/doc/configuration.txt index ece3919f0d..18da6a52b1 100644 --- a/doc/configuration.txt +++ b/doc/configuration.txt @@ -1919,6 +1919,40 @@ hard-stop-after