Closed nijel closed 4 years ago
This might be approach to implement this: https://github.com/CMSgov/bluebutton-web-server/blob/04bd3821b252d94dcfbbaa3aa4132838b90f7d48/apps/dot_ext/throttling.py
Thank you for your report, the issue you have reported has just been fixed.
Is your feature request related to a problem? Please describe. Extensive API users might want to know state of throttling and might adjust their behavior based on that.
Describe the solution you'd like Report API throttling status in the HTTP headers, in similar way as GitHub does it, see https://developer.github.com/v3/rate_limit/#response
Describe alternatives you've considered Currently, the numbers are not exposed in any way, so user will not know status until he gets error.