koajs / ratelimit

Rate limiter middleware
MIT License
485 stars 57 forks source link

Added custom error body text #22

Closed ahauser31 closed 8 years ago

ahauser31 commented 8 years ago

I made this change to allow for a custom error message in the body of the "429" response - reason being that my Koa application uses a scheme to label the error messages so they can be consumed by an automated client a bit easier.

Let me know what you think and thanks for this great middleware!

ahauser31 commented 8 years ago

Gosh, next time I better check the open pull requests first... This functionality is already a pull request Doh! Sorry guys!