Skip to content
Snippets Groups Projects
Commit c82e90e5 authored by Matt Chung's avatar Matt Chung Committed by GitHub
Browse files

Merge pull request #718 from janpriessnitz/fix_err_409

Added exception for HTTP 409 error
parents b58ff53c 5254bfeb
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -115,6 +115,16 @@ class NotAcceptable(ResponseError):
pass
 
 
class Conflict(ResponseError):
"""Exception class for 409 responses.
Possible reasons:
- Head branch was modified (SHA sums do not match)
"""
pass
class UnprocessableEntity(ResponseError):
"""Exception class for 422 responses."""
pass
Loading
Loading
@@ -142,6 +152,7 @@ error_classes = {
404: NotFoundError,
405: MethodNotAllowed,
406: NotAcceptable,
409: Conflict,
422: UnprocessableEntity,
451: UnavailableForLegalReasons,
}
Loading
Loading
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