]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: http-htx/proxy: Add http-error directive using http return syntax
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 15 May 2020 13:47:44 +0000 (15:47 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 20 May 2020 16:27:14 +0000 (18:27 +0200)
commit3b967c12102d9cfac9b404ec8b47510444ae3c93
treed2f9f6ae16dbc30d0b90149ec489f72d119dd212
parent97e466c9e386698085fa1080553bb7793b39fb05
MINOR: http-htx/proxy: Add http-error directive using http return syntax

The http-error directive can now be used instead of errorfile to define an error
message in a proxy section (including default sections). This directive uses the
same syntax that http return rules. The only real difference is the limitation
on status code that may be specified. Only status codes supported by errorfile
directives are supported for this new directive. Parsing of errorfile directive
remains independent from http-error parsing. But functionally, it may be
expressed in terms of http-errors :

  errorfile <status> <file> ==> http-errror status <status> errorfile <file>
doc/configuration.txt
include/types/arg.h
reg-tests/http-errorfiles/http-error.vtc [new file with mode: 0644]
src/http_htx.c
src/log.c
src/sample.c