UNPKG

@cognigy/rest-api-client

Version:

Cognigy REST-Client

55 lines 1.65 kB
/* Custom modules */ import { BaseError } from "./baseError"; import { ErrorCode } from "./ErrorCode"; import { HttpStatusCode } from "../helper/HttpStatusCode"; /** * @openapi * components: * responses: * ConflictError: * description: The request conflicts with current state of the server. * content: * application/json: * schema: * type: object * properties: * type: * type: string * example: Conflict * title: * type: string * example: Conflict Error * status: * type: number * example: 409 * detail: * type: string * instance: * type: string * example: /v2.0/flows/5ce7c2d833ea1e04d7e6c432 * code: * type: string * example: 1004 * traceId: * type: string * example: api--f84324f4-98eb-4f02-abdd-375a2e6c3c1f * details: * type: object * example: {} */ export class ConflictError extends BaseError { constructor(message, stack, meta, details, logLevel) { super({ name: "Conflict Error", message, code: ErrorCode.CONFLICT_ERROR, httpStatusCode: HttpStatusCode.CONFLICT, httpStatusText: "Conflict", stack, meta, details, logLevel, }); } } //# sourceMappingURL=conflict.js.map