UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

59 lines 1.96 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.InternalServerError = void 0; /* Custom modules */ const baseError_1 = require("./baseError"); const codes_1 = require("./codes"); const HttpStatusCode_1 = require("../helper/HttpStatusCode"); /** * @openapi * components: * responses: * InternalServerError: * description: The server encountered an unexpected condition that prevented it from fulfilling the request. * content: * application/json: * schema: * type: object * properties: * type: * type: string * example: Internal Server Error * title: * type: string * example: Internal Server Error * status: * type: number * example: 500 * 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 InternalServerError extends baseError_1.BaseError { constructor(message, stack, meta, details, logLevel) { super({ name: "Internal Server Error", message, code: codes_1.INTERNAL_SERVER_ERROR, httpStatusCode: HttpStatusCode_1.HttpStatusCode.INTERNAL_SERVER_ERROR, httpStatusText: "Internal Server Error", meta, stack, details, logLevel, }); } } exports.InternalServerError = InternalServerError; //# sourceMappingURL=internalServerError.js.map