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

# INVALID_REQUEST

> The request as a whole was refused before we read it, today only because the body is over 2 MB.

`400 Bad Request` · type `invalid_request`

**When it happens**

The request body is larger than 2 MB, judged by its `Content-Length` header or by what actually arrived. A quote with 25 policies and every field at its longest is about 1.3 MB, so a real request shouldn't come close.

**What to do**

Check that you aren't sending something you didn't mean to, such as an encoded document. Don't retry the same request.

## Example

```json 400 Bad Request theme={null}
{
  "error": {
    "type": "invalid_request",
    "code": "INVALID_REQUEST",
    "message": "The request body is larger than 2 MB.",
    "doc_url": "https://docs.bridgelinepf.com/errors#INVALID_REQUEST",
    "request_id": "req_8fJ2kQ9xLm4TzW7nB3cY5pDv"
  }
}
```

See all [error codes](/errors), or how to [handle errors](/guides/errors).


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