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

Function is529Error

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

Source from the content-addressed store, hash-verified

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

Callers 3

queryModelFunction · 0.85
isTransientCapacityErrorFunction · 0.85
withRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected