Skip to main content
HTTP 429: the rate limit was exceeded.

Extends

Constructors

Constructor

Parameters

status
number
body
unknown
headers
Headers
message?
string

Returns

RateLimitError

Inherited from

APIError.constructor

Properties

body

Parsed JSON, response text, or undefined for an empty body.

Inherited from

APIError.body

headers

HTTP response headers.

Inherited from

APIError.headers

requestId

Request ID from x-typesafe-request-id, or undefined when absent.

Inherited from

APIError.requestId

retryAfterMs

Server retry delay in milliseconds, or undefined when absent or invalid.

status

HTTP response status code.

Inherited from

APIError.status

Methods

fromResponse()

Create the error subclass for an HTTP status code.

Parameters

status
number
body
unknown
headers
Headers

Returns

APIError

Inherited from

APIError.fromResponse