@cognigy/rest-api-client
Version:
Cognigy REST-Client
55 lines • 1.74 kB
JavaScript
/* Custom modules */
import { BaseError } from "./baseError";
import { ErrorCode } from "./ErrorCode";
import { HttpStatusCode } from "../helper/HttpStatusCode";
/**
* @openapi
* components:
* responses:
* PayloadTooLargeError:
* description: The request entity is larger than limits defined by server.
* content:
* application/json:
* schema:
* type: object
* properties:
* type:
* type: string
* example: Payload Too Large
* title:
* type: string
* example: Payload Too Large Error
* status:
* type: number
* example: 413
* 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: {}
*/
export class PayloadTooLargeError extends BaseError {
constructor(message, stack, meta, details, logLevel) {
super({
name: "Payload Too Large Error",
message,
code: ErrorCode.PAYLOAD_TOO_LARGE_ERROR,
httpStatusCode: HttpStatusCode.PAYLOAD_TOO_LARGE,
httpStatusText: "Payload Too Large",
meta,
stack,
details,
logLevel,
});
}
}
//# sourceMappingURL=PayloadTooLargeError.js.map