mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-18 04:02:35 +03:00
Update exceptions.py
fix flake8 in code
This commit is contained in:
parent
f277956924
commit
8fc9a29f74
|
@ -203,11 +203,13 @@ class NotFound(APIException):
|
|||
default_detail = _('Not found.')
|
||||
default_code = 'not_found'
|
||||
|
||||
|
||||
class Conflict(APIException):
|
||||
status_code = status.HTTP_409_CONFLICT
|
||||
default_detail = _('Conflict request.')
|
||||
default_code = 'conflict_error'
|
||||
|
||||
|
||||
class MethodNotAllowed(APIException):
|
||||
status_code = status.HTTP_405_METHOD_NOT_ALLOWED
|
||||
default_detail = _('Method "{method}" not allowed.')
|
||||
|
|
Loading…
Reference in New Issue
Block a user