Commit 0c3e119e authored by Peter Palfrader's avatar Peter Palfrader

still catch 403 errors in our app

parent 3fead250
......@@ -158,7 +158,7 @@ note: different source packages can build binaries with the same binary package
URL: /file/<hash>
http status codes: 200 500 404 451 304
http status codes: 200 500 403 404 451 304
[return the file]
URL: /mr/file/<hash>/info
......
......@@ -76,12 +76,12 @@ def make_app(global_conf, full_stack=True, static_files=True, **app_conf):
# Handle Python exceptions
app = ErrorHandler(app, global_conf, **config['pylons.errorware'])
# Display error documents for 401, 404, 451 status codes (and
# Display error documents for 401, 403, 404, 451 status codes (and
# 500 when debug is disabled)
if asbool(config['debug']):
app = StatusCodeRedirect(app)
else:
app = StatusCodeRedirect(app, [400, 401, 404, 451, 500])
app = StatusCodeRedirect(app, [400, 401, 403, 404, 451, 500])
# Optionally suppress all Python warnings
if not 'warnings' in config or not asbool(config['warnings']):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment