European Parliament MCP Server API - v1.0.1
    Preparing search index...

    Class RateLimitError

    Rate limit error when API rate limit is exceeded

    Thrown when the client exceeds the configured rate limit. Always returns HTTP 429 status and includes retry-after information.

    if (requestCount > maxRequests) {
    throw new RateLimitError(
    'Rate limit exceeded',
    60 // retry after 60 seconds
    );
    }

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    code: string

    Machine-readable error code (e.g., 'VALIDATION_ERROR')

    statusCode: number = 500

    HTTP status code (default: 500)

    details?: unknown

    Optional additional error details for debugging

    retryAfter?: number

    Number of seconds to wait before retrying (optional)