observation-js Documentation - v1.14.0
    Preparing search index...

    Class RateLimitError

    Represents a rate limiting error (429 Too Many Requests). Contains information about retry timing if available.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    response: null | Response
    body: unknown
    retryAfter?: number
    resetTime?: Date

    Methods

    • Get the recommended delay in milliseconds before retrying

      Returns number

    • Check if enough time has passed since the rate limit was hit to retry

      Returns boolean