Le 11/17/22 à 08:13, Jarno Huuskonen a écrit :
Hello,

On Tue, 2022-11-08 at 09:30 +0530, Chilaka Ramakrishna wrote:
On queue timeout, currently HAProxy throws 503, But i want to return 429,
I understand that 4xx means a client problem and client can't help here.
But due to back compatibility reasons, I want to return 429 instead of
503. Is this possible ?

errorfile 503 /path/to/429.http
(http://cbonte.github.io/haproxy-dconv/2.6/configuration.html#4-errorfile)

Or maybe it's possible with http-error
(http://cbonte.github.io/haproxy-dconv/2.6/configuration.html#http-error)


This will work, but all errors generating 503 responses will be replaced by 429 responses. For now, there is no way to make difference between a queue timeout and connection error for instance.

--
Christopher Faulet


Reply via email to