@@ -0,0 +1,769 @@
+import json%0Afrom aiohttp import web%0A%0A%0Aclass AdminRESTError(web.HTTPBadRequest):%0A    status_code = 500%0A    error = %22Unknown Error%22%0A%0A    def __init__(self, message=None, status_code=None, **kwargs):%0A%0A        if status_code is not None:%0A            self.status_code = status_code%0A%0A        super().__init__(reason=message)%0A        if not message:%0A            message = self.error%0A%0A        msg_dict = %7B%22error%22: message%7D%0A%0A        if kwargs:%0A            msg_dict%5B'error_details'%5D = kwargs%0A%0A        self.text = json.dumps(msg_dict)%0A        self.content_type = 'application/json'%0A%0A%0Aclass ObjectNotFound(AdminRESTError):%0A    status_code = 404%0A    error = %22Object not found%22%0A%0A%0Aclass JsonValidaitonError(AdminRESTError):%0A    status_code = 400%0A    error = %22Json in payload invalid%22%0A

add two basic exceptions