restful: addition of `validate` function in RestfulPagination

Can you make the `status_code=400` default if it isn't?