def METHOD_NAME(method):
    """Wrap function with raw output to rest api."""
    async def wrap_api(api, *args, **kwargs):
        """Return api information."""
        try:
            msg_data = await method(api, *args, **kwargs)
            msg_type = content
        except (APIError, APIForbidden) as err:
            msg_data = str(err).encode()
            msg_type = CONTENT_TYPE_BINARY
        except HassioError:
            msg_data = b""
            msg_type = CONTENT_TYPE_BINARY
        return web.Response(body=msg_data, content_type=msg_type)
    return wrap_api