in elastic_agent_client/service/actions.py [0:0]
def generic_action_failure(self): return json.dumps({"error": "Action failed"}).encode()