Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the response status code configurable #148

Open
mecclesgoogle opened this issue May 28, 2020 · 0 comments
Open

Make the response status code configurable #148

mecclesgoogle opened this issue May 28, 2020 · 0 comments

Comments

@mecclesgoogle
Copy link

resp.statusCode = 403;

Some users might want to return a HTTP 429 status code, which is technically the correct status code to return for quota violations.

To preserve backwards compatibility, it can be made configurable and defaulted to 403, giving the consumer of the library (e.g. the Apgee microgateway) the ability to override it to 429.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant