INNER CODE UNIT · Python

page_not_found

stanfrbd/cyberbro · app.py:322

def page_not_found(_) -> tuple[str, int]:
    """Handle 404 errors."""
    return render_template("404.html"), 404


@app.errorhandler(500)
def internal_server_error(_) -> tuple[str, int]:
    """Handle 500 errors."""
    return render_template("500.html"), 500


@app.errorhandler(413)
def request_entity_too_large(_) -> tuple[str, int]:
    """Handle 413 errors."""
    return render_template("413.html"), 413


@app.route("/history")

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…