error_codes.js 929 B

123456789101112131415161718192021222324252627282930313233343536
  1. 'use strict';
  2. const MONGODB_ERROR_CODES = Object.freeze({
  3. HostUnreachable: 6,
  4. HostNotFound: 7,
  5. NetworkTimeout: 89,
  6. ShutdownInProgress: 91,
  7. PrimarySteppedDown: 189,
  8. ExceededTimeLimit: 262,
  9. SocketException: 9001,
  10. NotMaster: 10107,
  11. InterruptedAtShutdown: 11600,
  12. InterruptedDueToReplStateChange: 11602,
  13. NotMasterNoSlaveOk: 13435,
  14. NotMasterOrSecondary: 13436,
  15. StaleShardVersion: 63,
  16. StaleEpoch: 150,
  17. StaleConfig: 13388,
  18. RetryChangeStream: 234,
  19. FailedToSatisfyReadPreference: 133,
  20. CursorNotFound: 43,
  21. LegacyNotPrimary: 10058,
  22. WriteConcernFailed: 64,
  23. NamespaceNotFound: 26,
  24. IllegalOperation: 20,
  25. MaxTimeMSExpired: 50,
  26. UnknownReplWriteConcern: 79,
  27. UnsatisfiableWriteConcern: 100,
  28. DuplicateKey: 11000,
  29. CannotCreateIndex: 67,
  30. IndexOptionsConflict: 85,
  31. IndexKeySpecsConflict: 86,
  32. InvalidIndexSpecificationOption: 197
  33. });
  34. module.exports = Object.freeze({ MONGODB_ERROR_CODES });