UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

59 lines 1.94 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TooManyRequestsError = void 0; /* Custom modules */ const baseError_1 = require("./baseError"); const codes_1 = require("./codes"); const HttpStatusCode_1 = require("../helper/HttpStatusCode"); /** * @openapi * components: * responses: * TooManyRequestsError: * description: The server got too many requests than it is required to handle. * content: * application/json: * schema: * type: object * properties: * type: * type: string * example: TooManyRequestsError * title: * type: string * example: Too Many Requests Error * status: * type: number * example: 429 * detail: * type: string * instance: * type: string * example: /v2.0/flows/5ce7c2d833ea1e04d7e6c432 * code: * type: string * example: 1000 * traceId: * type: string * example: api--f84324f4-98eb-4f02-abdd-375a2e6c3c1f * details: * type: object * example: {} */ class TooManyRequestsError extends baseError_1.BaseError { constructor(message, stack, meta, details, logLevel) { super({ name: "Too Many Requests Error", message, code: codes_1.TOO_MANY_REQUESTS_ERROR, httpStatusCode: HttpStatusCode_1.HttpStatusCode.TOO_MANY_REQUESTS, httpStatusText: "Too Many Requests Error", meta, stack, details, logLevel, }); } } exports.TooManyRequestsError = TooManyRequestsError; //# sourceMappingURL=TooManyRequestsError.js.map