@app.errorhandler(404)
    def four_oh_four(error):
        if not cfg.cfg.config.features.disable_frontend:
            return render_template("error/404.html"), 404
        else: