@cognigy/rest-api-client
Version:
Cognigy REST-Client
56 lines • 1.78 kB
JavaScript
/* Custom modules */
import { BaseError } from "./baseError";
import { ErrorCode } from "./ErrorCode";
import { HttpStatusCode } from "../helper/HttpStatusCode";
/**
* @openapi
* components:
* responses:
* PaymentRequiredError:
* description: Upgrade your Plan to increase your Quota.
* content:
* application/json:
* schema:
* type: object
* properties:
* type:
* type: string
* example: Payment Required
* title:
* type: string
* example: Payment Required Error
* status:
* type: number
* example: 402
* detail:
* type: string
* example: Validation failed. Missing payload.
* instance:
* type: string
* example: /v2.0/flows/5ce7c2d833ea1e04d7e6c432
* code:
* type: string
* example: 402
* traceId:
* type: string
* example: api--f84324f4-98eb-4f02-abdd-375a2e6c3c1f
* details:
* type: object
* example: {}
*/
export class PaymentRequiredError extends BaseError {
constructor(message, stack, meta, details, logLevel) {
super({
name: "Payment Required Error",
message,
code: ErrorCode.PAYMENT_REQUIRED_ERROR,
httpStatusCode: HttpStatusCode.PAYMENT_REQUIRED,
httpStatusText: "Payment Required",
meta,
stack,
details,
logLevel,
});
}
}
//# sourceMappingURL=PaymentRequiredError.js.map