hi. but there is a 429 error code in the source.
https://git.haproxy.org/?p=haproxy.git&a=search&h=HEAD&st=grep&s=HTTP_ERR_429 As you don't written which version you use, maybe you can use the latest 2.6 version and give the error code 429 a chance :-) regards alex 17.11.2022 16:29:02 Chilaka Ramakrishna <rkchilaka...@gmail.com>: > Thanks Jarno, for the reply. > > But i don't think this would work for me, I just want to change the status > code (return 429 instead of 503) that i can return, if queue timeout occurs > for a request.. > > Please confirm, if this is possible or this sort of provision is even exposed > by HAP. > > On Thu, Nov 17, 2022 at 12:43 PM Jarno Huuskonen <jarno.huusko...@uef.fi> > wrote: >> 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) >> >> -Jarno >>