Files
RasadDam_Backend/apps/pos_device/exceptions.py

8 lines
293 B
Python

from rest_framework.exceptions import APIException
from rest_framework import status
class DeviceAlreadyAssigned(APIException):
status_code = status.HTTP_403_FORBIDDEN
default_detail = "این دستگاه قبلا به این کلاینت تخصیص داده شده است" # noqa