The error classes are messy. A duplicate index error (`E11000` in mongo) should be one of the two: - `FileExistsWithSameName` (name-parent-owner) - `FileExistsInS3` (bucket-key) Both implements `UniqueIndexExistsError` which implements `ClientError`. Both should