MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / is529Error

Function is529Error

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

Source from the content-addressed store, hash-verified

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

Callers 3

queryModelFunction · 0.85
isTransientCapacityErrorFunction · 0.85
withRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected