INNER CODE UNIT · Python
error_403
OWASP/Python-Honeypot · api/server.py:159
def error_403(error):
"""
handle the 403 HTTP error
Args:
error: the flask error
Returns:
403 JSON error
"""
return jsonify(
msg_structure(status="error", msg=error.description)
), 403
@app.errorhandler(404)
def error_404(error):
"""