added server restcontroller
utils for handling errors and requests