mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-10 15:02:56 +00:00
S3 DELETE call returns 204, not 200.
According to the S3 API docs, the DELETE call returns code "204 No content" on success.
This commit is contained in:
@@ -115,9 +115,9 @@ impl RelishStorage for RustS3 {
|
||||
.delete_object(path.key())
|
||||
.await
|
||||
.with_context(|| format!("Failed to delete s3 object with key {}", path.key()))?;
|
||||
if code != 200 {
|
||||
if code != 204 {
|
||||
Err(anyhow::format_err!(
|
||||
"Received non-200 exit code during deleting object with key '{}', code: {}",
|
||||
"Received non-204 exit code during deleting object with key '{}', code: {}",
|
||||
path.key(),
|
||||
code
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user