swift icon indicating copy to clipboard operation
swift copied to clipboard

ObjectCreate() 404 return is wrongly interpreted as ObjectNotFound instead of ContainerNotFound

Open sblaisot opened this issue 3 years ago • 0 comments

According to swift doc PUT request on object (object creation) returns 404 if container is not found

If the container for the object does not already exist, the operation returns the 404 Not Found response code.

ObjectCreate() function is currently mapped against objectErrorMap here so ncw/swift interprets 404 on object PUT as ObjectNotFound instead of ContainerNotFound which is confusing.

sblaisot avatar May 10 '21 23:05 sblaisot