EC
errcodes.dev
HTTP
PostgreSQL
Linux
Python
Docker
21 languages Β· 7,377+ codes
errcodes.dev
/
MongoDB
π
MongoDB Error Codes
MongoDB 7
35 codes
Numeric error codes with driver fix examples
All severities
ERROR
All tiers
Common
Notable
Critical
Showing
35
of
35
errors
Code
Message
Severity
Tier
2
Invalid BSON field value provided
ERROR
Notable
β
9
Failed to parse a query or expression
ERROR
Notable
β
11
User was not found for authentication
ERROR
Critical
β
13
Not authorized to perform an action
ERROR
Notable
β
14
Field path does not exist or holds a non-object value
ERROR
β
18
Authentication failed due to incorrect credentials
ERROR
Notable
β
20
An attempted operation is not supported
ERROR
β
22
The provided BSON is invalid
ERROR
β
24
A lock could not be acquired in the specified time
ERROR
Critical
β
26
The specified collection or view does not exist
ERROR
Common
β
27
The specified index does not exist
ERROR
Notable
β
40
Update operators conflict with each other
ERROR
Notable
β
43
The specified cursor ID is not found on the server
ERROR
Critical
β
50
Operation exceeded the specified time limit
ERROR
Notable
β
51
Manual intervention required to safely resolve
ERROR
β
59
The specified command does not exist
ERROR
Common
β
64
Write operation failed to satisfy the write concern
ERROR
Critical
β
66
Attempted to modify an immutable field
ERROR
Notable
β
67
Failed to create an index with the specified options
ERROR
Critical
β
68
Attempted to create an index that already exists with different options
ERROR
Common
β
72
The command was given invalid options
ERROR
Notable
β
73
The provided namespace (database or collection name) is invalid
ERROR
Notable
β
89
A network operation timed out
ERROR
Critical
β
91
The server is shutting down
ERROR
β
96
A generic operation failure occurred
ERROR
β
112
A conflict occurred during a write operation
ERROR
Critical
β
121
Document failed to pass schema validation
ERROR
Common
β
125
The command has failed
ERROR
β
211
A required encryption key was not found
ERROR
β
237
The cursor was killed by another operation
ERROR
Critical
β
241
Failed to convert a value to a different type
ERROR
Notable
β
251
The specified transaction does not exist
ERROR
Critical
β
262
Operation exceeded the transaction time limit
ERROR
Critical
β
11000
Duplicate key error β unique index constraint violated
ERROR
Common
β
13388
Sharding configuration is stale
ERROR
β