This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Make response-ratelimiting plugin and rate-limiting plugin return the same response when limited (or at least be more consistent). #732
Labels
task/feature
Requests for new features in Kong
When rate limited, the rate-limiting plugin returns a
429
with the following response body:However the response-ratelimiting plugin returns a
429
but with a blank response body.I propose to make response-ratelimiting return the same message, I assume simply by tweaking this line to include a message:
https://github.com/Mashape/kong/blob/923639ba45253108a0a1940cd359bbb93f58128b/kong/plugins/response-ratelimiting/header_filter.lua#L54
I think it offers a more consistent experience for API users to see the same error message when rate limited.
I'll do a pull request if it makes sense to others.
The text was updated successfully, but these errors were encountered: