Open willdealtry opened 3 months ago
We shouldn't remove RESOURCE_NOT_FOUND
. As mentioned in this issue, RESOURCE_NOT_FOUND
is returned when you call HeadObject()
and the key is not found. You can also see this in failing tests in the CI. This came up during my exception normalization PRs (I guess I should've left a comment explaining why RESOURCE_NOT_FOUND
is swallowed).
As for NO_SUCH_BUCKET
, it is kept as per what is found here. Although, we might be able remove this with some more work.
We should not treat resource unavailable or no such bucket as expected S3 errors, as we might incorrectly decide that an object doesn't exist and can be newly created when in fact we've just not managed to talk to the storage to ascertain whether it's there or not.