in kibana/lambda_function.py [0:0]
def error_response():
data = json.dumps({"error": "Environment incorrectly configured"})
response = {
"statusCode": "500",
"body": data.encode("utf-8"),
"headers": {"Content-Type": "application/json", "Cache-Control": "max-age=0"},
}
logger.error(response)
return response