UNPKG

@bitblit/epsilon

Version:

Tiny adapter to simplify building API gateway Lambda APIS

14 lines 574 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TooManyRequestsError = void 0; const common_1 = require("@bitblit/ratchet/common"); class TooManyRequestsError extends common_1.RestfulApiHttpError { constructor(...errors) { super(...errors); Object.setPrototypeOf(this, TooManyRequestsError.prototype); this.withHttpStatusCode(TooManyRequestsError.HTTP_CODE); } } exports.TooManyRequestsError = TooManyRequestsError; TooManyRequestsError.HTTP_CODE = 429; //# sourceMappingURL=too-many-requests-error.js.map