UNPKG

@fran-834/gs-microservice-core

Version:

Core package for Node.js microservices by Galduria Software. Includes security, logging, validation, and error handling middlewares.

26 lines (25 loc) 586 B
/** * Common error messages. */ const commonErrors = { resourceNotFound: "Resource not found", invalidRequest: "Invalid request", internalServerError: "Internal server error", unauthorized: "Unauthorized", forbidden: "Forbidden", badRequest: "Bad request", conflict: "Conflict", }; /** * Common HTTP error codes. */ const commonHTTPErrors = { resourceNotFound: 404, invalidRequest: 400, internalServerError: 500, unauthorized: 401, forbidden: 403, badRequest: 400, conflict: 409, }; export { commonErrors, commonHTTPErrors };