+1

But we need to mark this as a breaking change.

Traky Deng <trakyd...@api7.ai> 于2023年2月22日周三 17:49写道:

> Hello,
>
> It has been noted by Nicolas (cc-ed in the email) during a doc review that
> the rate-limit plugin currently defaults to 503 HTTP response code for
> requests exceeding the configured rate limit. HTTP 429 Too Many Requests
> response code might be a better fit:
> https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/429
>
> From a quick discussion with Zexuan Luo, the following info was mentioned:
> "503 was initially used because Nginx's limit_req_status also uses 503 as
> the default. However, Nginx made its decision long before 429 became
> popular."
>
> Hope to follow up with the dev team to see if and when this change will be
> made, as documentation team would like to change the relevant doc(s)
> accordingly.
>
> Thanks,
> Traky Deng
>

Reply via email to