WIP restful: addition of pagination

Should i create a class for REST errors?