UNPKG

@bitblit/ratchet-epsilon-common

Version:

Tiny adapter to simplify building API gateway Lambda APIS

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