INNER CODE UNIT · Python

error_401

OWASP/Python-Honeypot · api/server.py:143

def error_401(error):
    """
    handle the 401 HTTP error

    Args:
        error: the flask error

    Returns:
        401 JSON error
    """
    return jsonify(
        msg_structure(status="error", msg=error.description)
    ), 401


@app.errorhandler(403)
def error_403(error):
    """

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…