def internal_exception_handler(): return failure(message='Internal Error.', http_status_code=500)
def authorization_exception_handler(e): return failure(message=e.message, http_status_code=403)
def business_exception_handler(e): return failure(status=e.status, message=e.message)
def method_not_allowed(error): return failure(message=error.description, http_status_code=error.code)
def internal_server_error(error): return failure(message=error.description, http_status_code=error.code)
def not_found(error): return failure(message=error.description, http_status_code=error.code)
def forbidden(error): return failure(message=error.description, http_status_code=error.code)
def unauthorized(error): return failure(message=error.description, http_status_code=error.code)
def bad_request(error): return failure(message=error.description, http_status_code=error.code)
def exception_handler(e): print(e) return failure(message='Unknown Error.', http_status_code=500)