Re: Always add "reason"

2022-03-16 Thread Marco Corte
Il 2022-03-11 18:00 Willy Tarreau ha scritto: Hi Marco, On Thu, Mar 03, 2022 at 12:26:09PM +0100, Marco Corte wrote: Hi! I can add a "reason phrase" to a response based on the HTTP status like this: http-response set-status 200 reason OK if { status eq 200 } Is there any way to add the rea

Re: Always add "reason"

2022-03-11 Thread Willy Tarreau
Hi Marco, On Thu, Mar 03, 2022 at 12:26:09PM +0100, Marco Corte wrote: > Hi! > > I can add a "reason phrase" to a response based on the HTTP status like > this: > > http-response set-status 200 reason OK if { status eq 200 } > > Is there any way to add the reason phrase for a set of codes witho

Always add "reason"

2022-03-03 Thread Marco Corte
Hi! I can add a "reason phrase" to a response based on the HTTP status like this: http-response set-status 200 reason OK if { status eq 200 } Is there any way to add the reason phrase for a set of codes without an explicit rule for each code? I would like to write a set of rules like this