Errors: Add more error handler codes

This commit is contained in:
Andre D
2012-08-24 11:43:09 -05:00
committed by Neil Williams
parent 5267642908
commit 74a926b621

View File

@@ -63,7 +63,7 @@ def error_mapper(code, message, environ, global_conf=None, **kw):
if global_conf is None:
global_conf = {}
codes = [304, 401, 403, 404, 429, 503]
codes = [304, 401, 403, 404, 415, 429, 503]
if not asbool(global_conf.get('debug')):
codes.append(500)
if code in codes: