6 lines
No EOL
255 B
Python
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' |