MCP spec: server returns 404 for unknown session id, 400 for malformed header.
(error: unknown)
| 302 | |
| 303 | /** MCP spec: server returns 404 for unknown session id, 400 for malformed header. */ |
| 304 | private isSessionError(error: unknown): boolean { |
| 305 | if (error instanceof StreamableHTTPError) { |
| 306 | return error.code === 404 || error.code === 400 |
| 307 | } |
| 308 | return false |
| 309 | } |
| 310 | |
| 311 | private async updateServerStatus( |
| 312 | serverId: string, |
no outgoing calls
no test coverage detected