---
url: "https://vueda.dev/v3/reference/api/js/utils/errors/RateLimitedError/methods/constructor.md"
title: "constructor"
---

# constructor

## Overview

Creates an instance of RateLimitedError.

## Signature

`constructor(messagePrefix, response, responseData)`

### Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| <span id="param-messagePrefix">messagePrefix</span> | `string` | yes | The first sentence of the error message, without a period. |
| <span id="param-response">response</span> | `Response` | no | The response object associated with the error. |
| <span id="param-responseData">responseData</span> | `any` | no | The data returned in the response. |

### Returns

[RateLimitedError](/v3/reference/api/js/utils/errors/members/RateLimitedError.md)

## Source

`client/lib/utils/errors.js:91`
