exceptions.py 276 B

12345678
  1. from django.utils.translation import gettext_lazy as _
  2. from rest_framework import exceptions, status
  3. class ConflictException(exceptions.APIException):
  4. status_code = status.HTTP_409_CONFLICT
  5. default_detail = _("Already present!")
  6. default_code = "already_present"