Documentation / @zerotal/core / index / TooManyRequestsError
Class: TooManyRequestsError
Defined in: errors/HttpError.ts:85
429 Too Many Requests — the client has exceeded a rate limit.
Param
retryAfter
Seconds to wait before retrying; populates Retry-After.
Extends
Constructors
Constructor
new TooManyRequestsError(
retryAfter?,message?):TooManyRequestsError
Defined in: errors/HttpError.ts:87
Parameters
retryAfter?
number
message?
string = "Too Many Requests"
Returns
TooManyRequestsError
Overrides
Properties
headers?
optionalheaders?:Record<string,string>
Defined in: errors/HttpError.ts:15
Inherited from
retryAfter?
readonlyoptionalretryAfter?:number
Defined in: errors/HttpError.ts:86
code
readonlycode:string
Defined in: errors/ZerotalError.ts:18
Inherited from
status
readonlystatus:number=500
Defined in: errors/ZerotalError.ts:19
Inherited from
context?
readonlyoptionalcontext?:Record<string,unknown>
Defined in: errors/ZerotalError.ts:20