middleware: Add missing error code 409

This commit is contained in:
Andre D
2012-10-08 19:19:06 -05:00
committed by Neil Williams
parent 6d3d100033
commit 5550ceb093

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, 400, 401, 403, 404, 415, 429, 503]
codes = [304, 400, 401, 403, 404, 409, 415, 429, 503]
if not asbool(global_conf.get('debug')):
codes.append(500)
if code in codes: