Helpers for handling errors from the MongoDB driver. Version 0.5.0 (latest 2017). Low release cadence; no updates since 2017. Provides an error class hierarchy (MongoError, WriteError, etc.) and an Express middleware for uniform error responses. Simpler than the native MongoDB driver's error handling, but limited in scope.
npm install mongodb-js-errorsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows importing error classes, using Express middleware to handle MongoDB errors with HTTP status codes.
Consider using native MongoDB driver error handling or a maintained alternative.
Pin boom version to 4.x or handle error output manually.
Import from 'mongodb-js-errors/express' directly.
Ensure boom@4 is installed as a peer dependency.
Use 'mongodb-js-errors/express' (no trailing slash).
Install boom and ensure it's imported/required before using error classes.