from rest_framework import exceptions, status class AuthError(exceptions.APIException): status_code = status.HTTP_401_UNAUTHORIZED