AI agent instructions
AI agent instructions
429 both when a rate window is exhausted and when you already have the maximum number of active resources for your plan. See the API rate-limit reference for the X-Error-Class values that tell them apart.
Handling rate limits
Checkerror instanceof NotteAPIError and error.statusCode === 429 to identify rate limiting. Response headers are available through error.response?.headers; Node uses statusCode, not Python’s status_code.
For a rate-window 429, retry with bounded exponential backoff and jitter. These responses do not include Retry-After; the API sends that header only with 529 capacity responses. Set a retry limit and retry only operations that are safe to repeat. Automatic rate-limit retries are not provided by the high-level client.