MongoServerError
The error class the Node driver throws for server-side failures. Its `code` tells you which, such as 11000 for duplicate key, 121 for failed validation and 48 for NamespaceExists.
The error class the Node driver throws for server-side failures. Its `code` tells you which, such as 11000 for duplicate key, 121 for failed validation and 48 for NamespaceExists.