> For the complete documentation index, see [llms.txt](https://docs.whisk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.whisk.com/master/api/meal-plans/error-handling.md).

# Error Handling

All API endpoints may return the following error codes:

## 400

`400`- Bad Request. Something was wrong with data provided in the request. The response includes a JSON object with more data on the error.

```javascript
{
    "code":"general.badRequest","message":"Invalid date: GrpcDate(2020,3,128)"
}
```

Possible codes:

* general.badRequest - Invalid data format in request
* general.notFound - The ID of the provided entity was not found

## 401

`401`- Unauthorized. The token provided in the Authorization header is invalid or has expired. The response includes a JSON object with more data on the error.

```javascript
{
    "code":"auth.tokenNotFound"
}
```

Possible codes:

* `auth.tokenNotFound`
* `auth.tokenExpired`
* `auth.tokenInvalid`
* `auth.tokenRequired`

## 500

`500`- Internal Server Error. Something nasty is going on our side. Please send a message to <help@whisk.com>, and be sure to include both the Request and Response data. We’ll get back to you soon.
