INNER CODE UNIT · Python

error_500

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

def error_500(error):
    del error
    return jsonify(
        msg_structure(status="error", msg="something went wrong!")
    ), 500


@app.before_request
def authorization_check():
    """
    check if IP filtering applied and API address is in whitelist also
    API Key is valid

    Returns:
        None or Abort(403) or Abort(401)
    """
    # IP Limitation
    white_list_enabled = app.config["OWASP_HONEYPOT_CONFIG"]["api_client_white_list"]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…