wallet/main/exceptions.py
Sayyid Hamid Mahdavi e6eafbd6dc better settings
2026-04-26 12:35:29 +03:30

6 lines
No EOL
255 B
Python

from rest_framework.exceptions import APIException
class UnprocessableEntity(APIException):
status_code = 422
default_detail = 'The request was well-formed but cannot be processed due to semantic errors.'
default_code = 'unprocessable_entity'