MCPcopy Create free account
hub / github.com/MoonshotAI/kimi-code / maybeStatusCode

Function maybeStatusCode

packages/agent-core/src/loop/retry.ts:129–133  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

127}
128
129function maybeStatusCode(error: unknown): number | undefined {
130 if (typeof error !== 'object' || error === null) return undefined;
131 const statusCode = (error as { statusCode?: unknown }).statusCode;
132 return typeof statusCode === 'number' ? statusCode : undefined;
133}

Callers 1

retryErrorFieldsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected