We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0f2cf3b commit 1a7dd56Copy full SHA for 1a7dd56
core/src/services/s3/error.rs
@@ -43,6 +43,9 @@ pub(super) fn parse_error(resp: Response<Buffer>) -> Error {
43
403 => (ErrorKind::PermissionDenied, false),
44
404 => (ErrorKind::NotFound, false),
45
304 | 412 => (ErrorKind::ConditionNotMatch, false),
46
+ // 409 Conflict can be returned e.g. when PutObject with conditions.
47
+ // In this case the AWS docs say to retry.
48
+ 409 => (ErrorKind::ConditionNotMatch, true),
49
// Service like R2 could return 499 error with a message like:
50
// Client Disconnect, we should retry it.
51
499 => (ErrorKind::Unexpected, true),
0 commit comments