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

Function isFastModeNotEnabledError

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

Source from the content-addressed store, hash-verified

641// header for fast-mode rejection (e.g., x-fast-mode-rejected). String-matching
642// the error message is fragile and will break if the API wording changes.
643function isFastModeNotEnabledError(error: unknown): boolean {
644 if (!(error instanceof APIError)) {
645 return false
646 }
647 return (
648 error.status === 400 &&
649 (error.message?.includes('Fast mode is not enabled') ?? false)
650 )
651}
652
653export function is529Error(error: unknown): boolean {
654 if (!(error instanceof APIError)) {

Callers 1

withRetryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected