Error rest_post_invalid_page_number trying to call Rest API
I got the following error, trying to call all posts or alle posts from a specific post type via the REST API:
/wp-json/wp/v2/posts
/wp-json/wp/v2/posts?page=1
/wp-json/wp/v2/posts?page=1per_page=1
/wp-json/wp/v2/faq
The error which appears is:
{ "code": "rest_post_invalid_page_number", "message": "The page number requested is larger than the number of pages available.", "data": { "status": 400 } }
I got two posts within the custom post type and one normal post.
What causes this error?