mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-29 21:14:01 +03:00
Use correct status code
This commit is contained in:
parent
5ae49a4ec4
commit
dc9384f9b4
|
@ -24,7 +24,7 @@ class ParseError(APIException):
|
||||||
|
|
||||||
|
|
||||||
class Unauthenticated(APIException):
|
class Unauthenticated(APIException):
|
||||||
status_code = status.HTTP_401_UNAUTHENTICATED
|
status_code = status.HTTP_401_UNAUTHORIZED
|
||||||
default_detail = 'Incorrect or absent authentication credentials.'
|
default_detail = 'Incorrect or absent authentication credentials.'
|
||||||
|
|
||||||
def __init__(self, detail=None):
|
def __init__(self, detail=None):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user