UNPKG

ang-errors

Version:

errors management for the ANG API'S

14 lines (12 loc) 358 B
const constants = { // Log levels ERROR: 'error', WARN: 'warn', INFO: 'info', FATAL: 'fatal', // input validation error regex INPUT_VALIDATION_ERROR: 'Input validation error', METHOD_NOT_ALLOWED_ERROR: 'MethodNotAllowedError', RESOURCE_NOT_FOUND_ERROR: 'ResourceNotFoundError' }; module.exports = constants;