@cognigy/rest-api-client
Version:
Cognigy REST-Client
62 lines • 2.05 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.ResourceNotFoundError = void 0;
/* Custom modules */
const baseError_1 = require("./baseError");
const codes_1 = require("./codes");
const HttpStatusCode_1 = require("../helper/HttpStatusCode");
/**
* @openapi
* components:
* responses:
* NotFoundError:
* description: The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
* content:
* application/json:
* schema:
* type: object
* properties:
* type:
* type: string
* example: Not Found
* title:
* type: string
* example: Not Found Error
* status:
* type: number
* example: 404
* 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: {}
* logLevel:
* type: string
* example: error
*/
class ResourceNotFoundError extends baseError_1.BaseError {
constructor(message, stack, meta, details, logLevel) {
super({
name: "Resource Not Found Error",
message,
code: codes_1.RESOURCE_NOT_FOUND_ERROR,
httpStatusCode: HttpStatusCode_1.HttpStatusCode.NOT_FOUND,
httpStatusText: "Not Found",
meta,
stack,
details,
logLevel,
});
}
}
exports.ResourceNotFoundError = ResourceNotFoundError;
//# sourceMappingURL=resourceNotFound.js.map