@mssd/errors is a standardized error-handling package for microservices. It provides middleware, custom error types, and utilities that enable consistent and reliable error handling across services in a microservices architecture.
Features
Error Middleware: Easily integrate error handling middleware in Express applications.
Custom Error Types: Utilize predefined error classes for common error scenarios, such as NotFoundError, ValidationError, AuthenticationError, etc.
Error Utilities: Helper functions to simplify error handling and improve consistency across different services.
Standardized Responses: Generate standardized error responses, making it easy to handle and interpret errors within and across microservices.