Class: RateLimitError
@kortexya/reasoninglayer / RateLimitError
Class: RateLimitError
Defined in: src/errors.ts:140
Rate limit error (HTTP 429).
The request was rate-limited. Carries rate limit metadata from response headers.
Extends
Constructors
Constructor
new RateLimitError(
message,body,headers,errorCode?,retryAfter?,limit?,remaining?):RateLimitError
Defined in: src/errors.ts:150
Parameters
message
string
body
unknown
headers
Headers
errorCode?
string
retryAfter?
number | null
limit?
number | null
remaining?
number | null
Returns
RateLimitError
Overrides
Properties
body
readonlybody:unknown
Defined in: src/errors.ts:32
Parsed response body.
Inherited from
cause?
optionalcause:unknown
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
errorCode
readonlyerrorCode:string|undefined
Defined in: src/errors.ts:30
Backend error code (from response body error field), if present.
Inherited from
headers
readonlyheaders:Headers
Defined in: src/errors.ts:34
Response headers.
Inherited from
limit
readonlylimit:number|null
Defined in: src/errors.ts:146
Maximum requests allowed in the current window, or null if not specified.
message
message:
string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
name
name:
string='RateLimitError'
Defined in: src/errors.ts:141
Overrides
remaining
readonlyremaining:number|null
Defined in: src/errors.ts:148
Requests remaining in the current window, or null if not specified.
retryAfter
readonlyretryAfter:number|null
Defined in: src/errors.ts:144
Seconds to wait before retrying, or null if not specified.
stack?
optionalstack:string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
status
readonlystatus:number
Defined in: src/errors.ts:28
HTTP status code.