Skip to main content
Glama
errors.js889 B
export class AIBridgeError extends Error { constructor(message, code, statusCode = 500) { super(message); this.name = 'AIBridgeError'; this.code = code; this.statusCode = statusCode; } } export class ValidationError extends AIBridgeError { constructor(message) { super(message, 'VALIDATION_ERROR', 400); this.name = 'ValidationError'; } } export class ConfigurationError extends AIBridgeError { constructor(message) { super(message, 'CONFIGURATION_ERROR', 500); this.name = 'ConfigurationError'; } } export class RateLimitError extends AIBridgeError { constructor(message) { super(message, 'RATE_LIMIT_ERROR', 429); this.name = 'RateLimitError'; } } export class APIError extends AIBridgeError { constructor(message, service) { super(message, 'API_ERROR', 502); this.name = 'APIError'; this.service = service; } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fakoli/mcp-ai-bridge'

If you have feedback or need assistance with the MCP directory API, please join our Discord server