Skip to content
Snippets Groups Projects
Commit d4ad2701 authored by Roman Shishkin's avatar Roman Shishkin
Browse files

Add more client errors

parent 58b796dd
No related branches found
Tags 0.3.1
No related merge requests found
Pipeline #2775 passed
......@@ -35,6 +35,30 @@ class ClientError(ViewError):
reason_format = 'Unknown client error'
class ClientUnauthorizedError(ViewError):
code = 4001
status = 401
reason_format = 'Unauthorized error'
class ClientForbiddenError(ViewError):
code = 4003
status = 403
reason_format = 'Forbidden error'
class ClientMethodNotAllowedError(ViewError):
code = 4005
status = 405
reason_format = 'Method not allowed error'
class ClientConflictError(ViewError):
code = 4009
status = 409
reason_format = 'Conflict error'
class ServerError(ViewError):
code = 5000
status = 500
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment