diff options
Diffstat (limited to 'gn_auth/errors.py')
-rw-r--r-- | gn_auth/errors.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gn_auth/errors.py b/gn_auth/errors.py index 7b6ad33..1a48b9e 100644 --- a/gn_auth/errors.py +++ b/gn_auth/errors.py @@ -21,9 +21,9 @@ def page_not_found(exc): "error": exc.name, "error_description": (f"The page '{request.url}' does not exist on " "this server.") - })), 404 + })), exc.code - return render_template("404.html", page=request.url) + return render_template("404.html", page=request.url), exc.code def handle_authorisation_error(exc: AuthorisationError): """Handle AuthorisationError if not handled anywhere else.""" |