HTTP status 429 instead of 503 on throttled requests

Maxim Dounin mdounin at
Wed Feb 17 19:26:49 UTC 2021


On Wed, Feb 17, 2021 at 06:56:36PM +0000, Kaisersberger, Klaus wrote:

> Hi there
> nginx responds with 503 for requests discarded due to throttling (
> This seems to contradict, that recommends 429 (Too Many Requests) instead.
> Should nginx be adjusted?

There are no such plans, in particular, because it is generally a 
bad idea to report to an attacker that the attack was detected and 
being mitigated.

If you think that in your particular case returning 429 is a good 
idea, you can adjust your configuration by using the 
limit_req_status directive (

Maxim Dounin

More information about the nginx-devel mailing list