Spaces:
Runtime error
Runtime error
Download packages/mcp-proxy/src/utils/errors.ts from BTankut/Context-Store-LLM: direct link, hf CLI and curl.
- Browser
- Download file 704 Bytes
-
https://huggingface.co/spaces/BTankut/Context-Store-LLM/resolve/main/packages/mcp-proxy/src/utils/errors.ts
- Command line
-
hf download hf://spaces/BTankut/Context-Store-LLM/packages/mcp-proxy/src/utils/errors.ts
-
curl -L -o errors.ts https://huggingface.co/spaces/BTankut/Context-Store-LLM/resolve/main/packages/mcp-proxy/src/utils/errors.ts
704 Bytes
| export class MCPAuthProxyError extends Error { | |
| constructor(message: string, public code: string) { | |
| super(message) | |
| this.name = 'MCPAuthProxyError' | |
| } | |
| } | |
| export class InvalidCredentialsError extends MCPAuthProxyError { | |
| constructor() { | |
| super('Invalid or expired credentials', 'INVALID_CREDENTIALS') | |
| } | |
| } | |
| export class OAuthError extends MCPAuthProxyError { | |
| constructor(message: string) { | |
| super(message, 'OAUTH_ERROR') | |
| } | |
| } | |
| export class ProxyError extends MCPAuthProxyError { | |
| constructor(message: string) { | |
| super(message, 'PROXY_ERROR') | |
| } | |
| } | |
| export class TransportError extends MCPAuthProxyError { | |
| constructor(message: string) { | |
| super(message, 'TRANSPORT_ERROR') | |
| } | |
| } |