How to catch the error when inserting a MongoDB document which violates an unique index? How to catch the error when inserting a MongoDB document which violates an unique index? mongoose mongoose