Add throughput filter to filter chain
Depends on #9
Once a throughput service exists, a new filter should be added to the filter chain to make use of the service. The filter should end the request and return the user an error status of 429 to indicate too many requests if the service indicates the user is not allowed to request information.
To conform to the RFC spec, the error message to the user should indicate whether the user triggered an abuse detection mechanic, or whether the user is out of requests for the current period.
A Retry-After
header should be included indicating when additional requests are available for the user.
This filter should also inject the rate-limiting information headers for the current user token. These headers are the following, based on what's used for the accounts API:
- X-Rate-Limit-Limit
- X-Rate-Limit-Remaining
- X-Rate-Limit-Reset