API Testing / Quiz
Pagination Edge Cases
Empty pages, oversized limits, unstable sort keys, and deep-offset pain, the corners where paginated APIs quietly break.
- Difficulty
- Medium
- Format
- Quiz
- Points
- 150
- Estimate
- 9 min
// MISSION BRIEF
Your Mission
Everyone tests page 1. The bugs live at the edges: the page past the end, the limit of 100000, the sort key with ties, the total-count that costs more than the query. This quiz hunts those corners.
// FIRST CONTACT
Battle teaser
GET /items?page=999 when only 3 pages exist. The best behavior:
- A404, the page does not exist
- B500, the offset is out of range
- C200 with an empty items array plus pagination metadata, not a 404
- DRedirect to the last valid page
Answers, scoring, hints, and the full battle stay sealed.
// SKILL TAGS
apipaginationcursordatabase