# Errors

RedirHub uses conventional HTTP response codes to indicate the success or failure of an API request. In general: Codes in the `2xx` range indicate success. Codes in the `4xx` range indicate an error that failed given the information provided (e.g., a required parameter was omitted or was invalid). Codes in the `5xx` range indicate an error with our servers.

Generally speaking, API errors are broken into the following categories:

* **Request Validation Errors** - A request was made with invalid parameters. This can be because of a missing parameter, an invalid parameter, or a parameter that is not allowed.
* **Rate Limit Error** - The request was made too many times in a given amount of time.
* **Billing/Subscription Errors(fixed code:** 48&#x32;**)** - The action need higher grade subscription or the corresponding account does not have an active subscription.
* **Permissions Errors** - You do not have sufficient permissions to invoke the request API endpoint, and/or access the requested resource.

<br>

Some `4xx` errors will include a list of errors with additional attributes. This may be useful to programatically handle the error or display an error message in your own UI.

```javascript
{
  "message": "Invalid Request",
  "errors": [
    {
      "resource": "rule",
      "param": "forward_params",
      "code": "invalid_option",
      "message": "Must be true or false"
    }
  ]
}
```

##

\ <br>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dev.redirhub.com/errors.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
