from rest_framework import status from rest_framework.exceptions import APIException class LicenseException(APIException): status_code = status.HTTP_400_BAD_REQUEST