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

Function isMockRateLimitError

src/services/rateLimitMocking.ts:137–139  ·  view source on GitHub ↗
(error: APIError)

Source from the content-addressed store, hash-verified

135 * Check if this is a mock 429 error that shouldn't be retried
136 */
137export function isMockRateLimitError(error: APIError): boolean {
138 return shouldProcessMockLimits() && error.status === 429
139}
140
141/**
142 * Check if /mock-limits command is currently active (for UI purposes)

Callers 1

shouldRetryFunction · 0.85

Calls 1

shouldProcessMockLimitsFunction · 0.85

Tested by

no test coverage detected