UNPKG

@bitblit/ratchet-epsilon-common

Version:

Tiny adapter to simplify building API gateway Lambda APIS

10 lines 424 B
import { RestfulApiHttpError } from '@bitblit/ratchet-common/network/restful-api-http-error'; export class MisconfiguredError extends RestfulApiHttpError { static HTTP_CODE = 500; constructor(...errors) { super(...errors); Object.setPrototypeOf(this, MisconfiguredError.prototype); this.withHttpStatusCode(MisconfiguredError.HTTP_CODE); } } //# sourceMappingURL=misconfigured-error.js.map