voyagermesh / voyager

🚀 Secure L7/L4 (HAProxy) Ingress Controller for Kubernetes
https://voyagermesh.com
Apache License 2.0
1.35k stars 134 forks source link

Rate limiting return 'Forbidden' (403) instead of 'Too Many Requests' (429) #1586

Open mgvazquez opened 3 years ago

mgvazquez commented 3 years ago

It's really confuse for debugging if when I reach the limit of the request per second, get a 'Forbidden' instead of 'Too Many Requests'.

Here is and example in the HAProxy Blog: https://www.haproxy.com/blog/four-examples-of-haproxy-rate-limiting/

Is there a way to change the http code, other than use a custom-template?