Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Errors: Add more error handler codes
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-d authored and spladug committed Sep 11, 2012
1 parent 5267642 commit 74a926b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion r2/r2/config/middleware.py
Expand Up @@ -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:
Expand Down

0 comments on commit 74a926b

Please sign in to comment.