diff --git a/api/masteriqapp/views/AuthenticationView.py b/api/masteriqapp/views/AuthenticationView.py index a426a78..b6a37fb 100644 --- a/api/masteriqapp/views/AuthenticationView.py +++ b/api/masteriqapp/views/AuthenticationView.py @@ -51,7 +51,7 @@ def token(self, request): 'token': token.key, 'expires': expiring_date }) - return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) + return Response(serializer.errors, status=status.HTTP_401_UNAUTHORIZED) def create_iq_objects_for_new_user(self, user): categories = self.category_model.objects.all()