We have a REST API which is rate-limted according to number of requests, but also amount of KB submitted. If a client application exceeds their allowed quota of requests to an API endpoint we return a 429 Too Many Requests
response, as per RFC6585 . But what is the appropriate response if a client exceeds the amount of KB allowed?
You can use:
400 Bad Request
or:
403 Forbidden
or:
406 Not Acceptable
or:
413 Request Entity Too Large
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.