mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
middleware: Add missing error code 409
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user