UNPKG

briareus

Version:

Briareus assists with Feature Branch deploys to ECS

14 lines (11 loc) 340 B
'use strict' class InputValidationError extends Error { constructor(errors, ...args) { super(...args); Error.captureStackTrace(this, InputValidationError); this.customStatusCode = 400; this.responseBody = { errors }; this.headers = { 'Content-Type': 'application/json' } } } module.exports = InputValidationError;