@bitblit/ratchet-epsilon-common
Version:
Tiny adapter to simplify building API gateway Lambda APIS
10 lines • 392 B
JavaScript
import { RestfulApiHttpError } from '@bitblit/ratchet-common/network/restful-api-http-error';
export class BadGateway extends RestfulApiHttpError {
static HTTP_CODE = 502;
constructor(...errors) {
super(...errors);
Object.setPrototypeOf(this, BadGateway.prototype);
this.withHttpStatusCode(BadGateway.HTTP_CODE);
}
}
//# sourceMappingURL=bad-gateway.js.map