diff --git a/core/src/services/koofr/core.rs b/core/src/services/koofr/core.rs index dd30bed7d324..d998ba750ffd 100644 --- a/core/src/services/koofr/core.rs +++ b/core/src/services/koofr/core.rs @@ -210,7 +210,9 @@ impl KoofrCore { let status = resp.status(); match status { - StatusCode::OK | StatusCode::CREATED => Ok(()), + // When the directory already exists, Koofr returns 400 Bad Request. + // We should treat it as success. + StatusCode::OK | StatusCode::CREATED | StatusCode::BAD_REQUEST => Ok(()), _ => Err(parse_error(resp).await?), } }