mirror of
https://github.com/HamzaSha1/zod-backend.git
synced 2025-11-27 17:14:55 +00:00
17 lines
426 B
Python
17 lines
426 B
Python
"""
|
|
module containing override conflict error class
|
|
"""
|
|
# third party imports
|
|
from django.utils.translation import ugettext_lazy as _
|
|
from rest_framework import status
|
|
from rest_framework.exceptions import APIException
|
|
|
|
|
|
class ConflictError(APIException):
|
|
"""
|
|
Override conflict error
|
|
"""
|
|
status_code = status.HTTP_409_CONFLICT
|
|
default_detail = _('Not allowed request.')
|
|
default_code = 'conflict_error'
|