def response_handler(resp): if not resp.is_success: raise AQLCacheConfigureError(resp, request) return format_aql_cache(resp.body)
def response_handler(resp: Response) -> Json: if not resp.is_success: raise AQLCachePropertiesError(resp, request) return format_aql_cache(resp.body)