]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: http: add the ability to redefine http-err-codes and http-fail-codes
authorWilly Tarreau <w@1wt.eu>
Thu, 11 Jan 2024 11:06:49 +0000 (12:06 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 11 Jan 2024 14:10:08 +0000 (15:10 +0100)
commit4cc25f26f94859bf4dbc2d036d9d23e5a5a7a2de
tree637287c448cabd8106bfc3c8ac35d6738c42555b
parent9d827e10497a57623e903e0be41fe9b02efb5da5
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).
doc/configuration.txt
reg-tests/http-rules/http-err-fail.vtc [new file with mode: 0644]
src/http.c