diff options
| author | Tom Christie | 2012-10-17 15:09:20 +0100 | 
|---|---|---|
| committer | Tom Christie | 2012-10-17 15:09:20 +0100 | 
| commit | dc9384f9b4321f099e380f6b4a04fbe2eeb2b743 (patch) | |
| tree | 736c513868dccd2538b8f4943716b1673f438e3d /rest_framework/exceptions.py | |
| parent | 5ae49a4ec4ccfdab13bc848ecd175d44ecaf4ed1 (diff) | |
| download | django-rest-framework-dc9384f9b4321f099e380f6b4a04fbe2eeb2b743.tar.bz2 | |
Use correct status code
Diffstat (limited to 'rest_framework/exceptions.py')
| -rw-r--r-- | rest_framework/exceptions.py | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/rest_framework/exceptions.py b/rest_framework/exceptions.py index 1597da61..2461cacd 100644 --- a/rest_framework/exceptions.py +++ b/rest_framework/exceptions.py @@ -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): | 
