add permission denied error message

This commit is contained in:
Craig Blaszczyk 2011-07-26 12:03:27 +01:00
parent f71f3aa422
commit 3eba22eea4

View File

@ -30,6 +30,10 @@ _403_NOT_LOGGED_IN_RESPONSE = ErrorResponse(
status.HTTP_403_FORBIDDEN, status.HTTP_403_FORBIDDEN,
{'detail': 'You need to login to access this resource.'}) {'detail': 'You need to login to access this resource.'})
_403_PERMISSION_DENIED_RESPONSE = ErrorResponse(
status.HTTP_403_FORBIDDEN,
{'detail': 'You do not have permission to access this resource.'})
_503_SERVICE_UNAVAILABLE = ErrorResponse( _503_SERVICE_UNAVAILABLE = ErrorResponse(
status.HTTP_503_SERVICE_UNAVAILABLE, status.HTTP_503_SERVICE_UNAVAILABLE,
{'detail': 'request was throttled'}) {'detail': 'request was throttled'})