From c3891b6e00daa7a92cca1c88599e046f72926bb4 Mon Sep 17 00:00:00 2001 From: Dmitry Mukhin Date: Mon, 7 Apr 2014 20:31:12 +0400 Subject: set Retry-After header when throttled --- rest_framework/exceptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rest_framework/exceptions.py') 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: -- cgit v1.2.3