MCPcopy Index your code
hub / github.com/simstudioai/sim / getWorkflowErrorStatus

Function getWorkflowErrorStatus

apps/sim/app/api/mcp/serve/[serverId]/route.ts:244–246  ·  view source on GitHub ↗
(status: number)

Source from the content-addressed store, hash-verified

242}
243
244function getWorkflowErrorStatus(status: number): number {
245 return [400, 401, 403, 404, 408, 409, 413, 429, 499, 503].includes(status) ? status : 500
246}
247
248function getWorkflowErrorCode(status: number, executeResult: Record<string, unknown>): ErrorCode {
249 if (status === 499) return ErrorCode.ConnectionClosed

Callers 1

handleToolsCallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected