MCPcopy Index your code
hub / github.com/codeaashu/claude-code / is529Error

Function is529Error

src/services/api/withRetry.ts:610–621  ·  view source on GitHub ↗
(error: unknown)

Source from the content-addressed store, hash-verified

608}
609
610export function is529Error(error: unknown): boolean {
611 if (!(error instanceof APIError)) {
612 return false
613 }
614
615 // Check for 529 status code or overloaded error in message
616 return (
617 error.status === 529 ||
618 // See below: the SDK sometimes fails to properly pass the 529 status code during streaming
619 (error.message?.includes('"type":"overloaded_error"') ?? false)
620 )
621}
622
623function isOAuthTokenRevokedError(error: unknown): boolean {
624 return (

Callers 3

queryModelFunction · 0.85
isTransientCapacityErrorFunction · 0.85
withRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected