okta-mcp-server
Version:
Model Context Protocol (MCP) server for Okta API operations with support for bulk operations and caching
49 lines • 1.48 kB
JavaScript
export class OktaMCPError extends Error {
code;
statusCode;
details;
constructor(message, code, statusCode, details) {
super(message);
this.code = code;
this.statusCode = statusCode;
this.details = details;
this.name = 'OktaMCPError';
}
}
export class ValidationError extends OktaMCPError {
constructor(message, details) {
super(message, 'VALIDATION_ERROR', 400, details);
this.name = 'ValidationError';
}
}
export class AuthenticationError extends OktaMCPError {
constructor(message, details) {
super(message, 'AUTHENTICATION_ERROR', 401, details);
this.name = 'AuthenticationError';
}
}
export class AuthorizationError extends OktaMCPError {
constructor(message, details) {
super(message, 'AUTHORIZATION_ERROR', 403, details);
this.name = 'AuthorizationError';
}
}
export class NotFoundError extends OktaMCPError {
constructor(message, details) {
super(message, 'NOT_FOUND', 404, details);
this.name = 'NotFoundError';
}
}
export class RateLimitError extends OktaMCPError {
constructor(message, details) {
super(message, 'RATE_LIMIT_ERROR', 429, details);
this.name = 'RateLimitError';
}
}
export class OktaError extends OktaMCPError {
constructor(message, details) {
super(message, 'OKTA_ERROR', 500, details);
this.name = 'OktaError';
}
}
//# sourceMappingURL=errors.js.map