Pagination Errors
Page out of bounds
This error is caused when you have requested a page of data which has exceeded the limit of data that exists.
- Minimum page size is 1
- Maximum page size is 50
Example of Page out of bounds error:
{
"title": "Page does not exist",
"status": 400,
"detail": "Page 100 with page size 10 is out of bounds with 50 locations"
}
Invalid sorting argument
This error is caused when the argument provided for sorting the requested data is not supported.
Example of Invalid Sorting Argument error:
{
"title": "Sorting argument is invalid",
"status": 400,
"detail": "Sort By is invalid. Valid arguments are: created_at, sent_at"
}
Invalid sorting direction
This error is caused when the direction provided is invalid or not supported.
Endpoints only accept:
- ASC
- DESC
as sorting directions
Example of Invalid sorting direction error:
{
"title": "Sorting direction is invalid",
"status": 400,
"detail": "Sort Direction is invalid. Valid arguments are: ASC, DESC"
}