Handling put failures for lack of enough space and uniqueness