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

Function handleStatus

packages/telemetry/src/transport.ts:279–286  ·  view source on GitHub ↗
(status: number)

Source from the content-addressed store, hash-verified

277}
278
279function handleStatus(status: number): void {
280 if (status >= 500 || status === 429) {
281 throw new TransientTelemetryError(`HTTP ${String(status)}`);
282 }
283 if (status >= 400) {
284 return;
285 }
286}
287
288function readJsonl(path: string): EnrichedTelemetryEvent[] {
289 const text = readFileSync(path, 'utf-8');

Callers 1

sendHttpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected