diff --git a/src/index.py b/src/index.py index 1cbe805..ced78a9 100755 --- a/src/index.py +++ b/src/index.py @@ -76,7 +76,7 @@ def error(code) -> str: if not code.isdigit(): code=400 elif code not in error_definitions: - return Response(code) + return Response(status=code) return render_template('error.html', error=f'{code}: {error_definitions.get(int(code))}',