your recipe card header background

    Flask abort

    0

    2

    Python Flask

    Library: flask

    Shortcut: flask.abort

    from flask import abort
    
    @app.route('/login')
    def login():
        abort(401)
        this_is_never_executed()
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.