INNER CODE UNIT · Python
error_400
OWASP/Python-Honeypot · api/server.py:127
def error_400(error):
"""
handle the 400 HTTP error
Args:
error: the flask error
Returns:
400 JSON error
"""
return jsonify(
msg_structure(status="error", msg=error.description)
), 400
@app.errorhandler(401)
def error_401(error):
"""