> ## Documentation Index
> Fetch the complete documentation index at: https://docs.api.rask.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# invalid_date_range

> Invalid date range: HTTP 422 from the Rask API v3. What it means, what to do and which operations return it.

| Status | `retry` | `recommendation` |
| - | - | - |
| 422 | `none` | `fix_request` |

## What happened

Invalid date range. For example: The date range is invalid.

## What to do

Send from earlier than to, spanning at most 400 days.

`fix_request`: change the request or its inputs; sent unchanged it fails again.

`none`: do not retry the request unchanged.

## Example

```json theme={null}
{
  "type": "https://docs.api.rask.ai/errors/invalid_date_range",
  "title": "Invalid date range",
  "status": 422,
  "detail": "The date range is invalid.",
  "instance": "urn:uuid:7d5c0e9a-3f1b-4c2e-9a8d-6b4f2e1c0d93",
  "code": "invalid_date_range",
  "retryable": false,
  "retry": "none",
  "recommendation": "fix_request",
  "hint": "Send from earlier than to, spanning at most 400 days.",
  "errors": []
}
```

## Operations that return it

* [getUsage](https://docs.api.rask.ai/operations/getUsage.md)
* [listUsageEvents](https://docs.api.rask.ai/operations/listUsageEvents.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.