def METHOD_NAME(func):
    @functools.wraps(func)
    async def wrapper(request):
        try:
            ret = await func(request)
            return ret
        except ValidationError as err:
            raise web.HTTPUnprocessableEntity(reason=err.messages) from err
        except PublicDIDRequiredError as err:
            raise web.HTTPBadRequest(reason=err.roll_up) from err
        except PublicDIDMismatchError as err:
            raise web.HTTPUnauthorized(reason=err.roll_up) from err
        except StorageNotFoundError as err:
            raise web.HTTPNotFound(reason=err.roll_up) from err
        except (StorageError, BaseModelError) as err:
            raise web.HTTPBadRequest(reason=err.roll_up) from err
        except Exception as err:
            LOGGER.error(err)
            raise err
    return wrapper