aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/exceptions.py
diff options
context:
space:
mode:
authorDmitry Mukhin2014-04-07 20:31:12 +0400
committerDmitry Mukhin2014-04-07 20:31:12 +0400
commitc3891b6e00daa7a92cca1c88599e046f72926bb4 (patch)
tree201120791360e16fa8fdea1ce688223801ce09ed /rest_framework/exceptions.py
parent115fe04842b58226b9fa29069b95af7df62b046a (diff)
downloaddjango-rest-framework-c3891b6e00daa7a92cca1c88599e046f72926bb4.tar.bz2
set Retry-After header when throttled
Diffstat (limited to 'rest_framework/exceptions.py')
-rw-r--r--rest_framework/exceptions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/exceptions.py b/rest_framework/exceptions.py
index 5f774a9f..389032bd 100644
--- a/rest_framework/exceptions.py
+++ b/rest_framework/exceptions.py
@@ -71,7 +71,7 @@ class UnsupportedMediaType(APIException):
class Throttled(APIException):
status_code = status.HTTP_429_TOO_MANY_REQUESTS
default_detail = 'Request was throttled.'
- extra_detail = "Expected available in %d second%s."
+ extra_detail = " Expected available in %d second%s."
def __init__(self, wait=None, detail=None):
if wait is None: