@cognigy/rest-api-client
Version:
Cognigy REST-Client
55 lines • 1.82 kB
JavaScript
/* Custom modules */
import { BaseError } from "./baseError";
import { GATEWAY_TIMEOUT_ERROR } from "./codes";
import { HttpStatusCode } from "../helper/HttpStatusCode";
/**
* @openapi
* components:
* responses:
* GatewayTimeoutError:
* description: The server, while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request.
* content:
* application/json:
* schema:
* type: object
* properties:
* type:
* type: string
* example: Gateway Timeout
* title:
* type: string
* example: Gateway Timeout Error
* status:
* type: number
* example: 504
* 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 GatewayTimeoutError extends BaseError {
constructor(message, stack, meta, details, logLevel) {
super({
name: "Gateway Timeout Error",
message,
code: GATEWAY_TIMEOUT_ERROR,
httpStatusCode: HttpStatusCode.GATEWAY_TIMEOUT,
httpStatusText: "Gateway Timeout",
meta,
stack,
details,
logLevel,
});
}
}
//# sourceMappingURL=GatewayTimeoutError.js.map