Use correct status code

This commit is contained in:
Tom Christie 2012-10-17 15:09:20 +01:00
parent 5ae49a4ec4
commit dc9384f9b4

View File

@ -24,7 +24,7 @@ class ParseError(APIException):
class Unauthenticated(APIException):
status_code = status.HTTP_401_UNAUTHENTICATED
status_code = status.HTTP_401_UNAUTHORIZED
default_detail = 'Incorrect or absent authentication credentials.'
def __init__(self, detail=None):