MCPcopy Create free account
hub / github.com/Noumena-Network/code / is529Error

Function is529Error

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

Source from the content-addressed store, hash-verified

651}
652
653export function is529Error(error: unknown): boolean {
654 if (!(error instanceof APIError)) {
655 return false
656 }
657
658 // Check for 529 status code or overloaded error in message
659 return (
660 error.status === 529 ||
661 // See below: the SDK sometimes fails to properly pass the 529 status code during streaming
662 (error.message?.includes('"type":"overloaded_error"') ?? false)
663 )
664}
665
666function isOAuthTokenRevokedError(error: unknown): boolean {
667 return (

Callers 4

withRetry.test.tsFile · 0.85
queryModelFunction · 0.85
isTransientCapacityErrorFunction · 0.85
withRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected