Skip to main content
Glama
error.ts432 B
export interface PvpcErrorResponse { status: number; message: string; } export class PvpcError extends Error { constructor( message: string, name: string, public readonly status = 500, ) { super(); this.message = message; this.name = name; } static fromResponse(response: PvpcErrorResponse): PvpcError { const { status, message } = response; return new PvpcError(message, "ApplicationError", status); } }

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/rfdez/pvpc-mcp-server'

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