change pagination to limit and add error description, and add 401 response