MCPcopy Create free account
hub / github.com/anus-dev/ANUS / createSimulated429Error

Function createSimulated429Error

packages/core/src/utils/testUtils.ts:59–65  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 * Create a simulated 429 error response
58 */
59export function createSimulated429Error(): Error {
60 const error = new Error('Rate limit exceeded (simulated)') as Error & {
61 status: number;
62 };
63 error.status = 429;
64 return error;
65}
66
67/**
68 * Reset simulation state when switching auth methods

Calls

no outgoing calls

Tested by

no test coverage detected