We have an API and we want to reject requests beyond page 99.
EG:
GET example.com/users?page[number]=99 # Allowed, returns 200 OK
GET example.com/users?page[number]=100 # Disallowed, returns ???
What is the most appropriate status code to return?
We are considering:
- 400: Too generic
- 403: Most likely
- 410: Gone. Maybe, but the old way was not temporary
- 422: Close, but includes: "the server was unable to process the contained instructions", not quite accurate
- 429: Doesn't honour Retry-After