Skip to main content
zerotal

Documentation


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

HttpError.constructor

Properties

headers?

optional headers?: Record<string, string>

Defined in: errors/HttpError.ts:15

Inherited from

HttpError.headers


retryAfter?

readonly optional retryAfter?: number

Defined in: errors/HttpError.ts:86


code

readonly code: string

Defined in: errors/ZerotalError.ts:18

Inherited from

HttpError.code


status

readonly status: number = 500

Defined in: errors/ZerotalError.ts:19

Inherited from

HttpError.status


context?

readonly optional context?: Record<string, unknown>

Defined in: errors/ZerotalError.ts:20

Inherited from

HttpError.context