]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DOC: config: Add missing 'status-code' param for 'http-check expect' directive
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 20 Mar 2026 10:33:32 +0000 (11:33 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 23 Mar 2026 13:02:43 +0000 (14:02 +0100)
In the documentation of 'http-check expect' directive, the parameter
'status-code' was missing. Let's add it.

This patch could be backported to all stable versions.

doc/configuration.txt

index a5195a1d70ff91fad73e65880657e621c3c61318..c9bfd976ea311633023325b72d71367ab6cb903f 100644 (file)
@@ -8326,6 +8326,11 @@ http-check expect [min-recv <int>] [comment <msg>]
                        occurred during the expect rule evaluation. <fmt> is a
                        Custom log format string (see section 8.2.6).
 
+    status-code <expr> is optional and can be used to set the check status code
+                       reported in logs, on success or on error. <expr> is a
+                       standard HAProxy expression formed by a sample-fetch
+                       followed by some converters.
+
     <match>   is a keyword indicating how to look for a specific pattern in the
               response. The keyword may be one of "status", "rstatus", "hdr",
               "fhdr", "string", or "rstring". The keyword may be preceded by an