10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b58ff53 + 5254bfe commit c82e90eCopy full SHA for c82e90e
github3/exceptions.py
@@ -115,6 +115,16 @@ class NotAcceptable(ResponseError):
115
pass
116
117
118
+class Conflict(ResponseError):
119
+ """Exception class for 409 responses.
120
+
121
+ Possible reasons:
122
123
+ - Head branch was modified (SHA sums do not match)
124
+ """
125
+ pass
126
127
128
class UnprocessableEntity(ResponseError):
129
"""Exception class for 422 responses."""
130
@@ -142,6 +152,7 @@ class UnavailableForLegalReasons(ResponseError):
142
152
404: NotFoundError,
143
153
405: MethodNotAllowed,
144
154
406: NotAcceptable,
155
+ 409: Conflict,
145
156
422: UnprocessableEntity,
146
157
451: UnavailableForLegalReasons,
147
158
}
0 commit comments