E04002 — MessageTooLarge
Once generated, this message is over the 20 MB limit.
- HTTP status: 413
- Type: payload_too_large_error
- Name: MessageTooLarge
What to do
The request body exceeds the maximum allowed size. Reduce the request body (smaller attachments, fewer items per call) and retry. Batch endpoints accept multiple smaller requests.
Related
- E04xxx — Email sending & delivery: every code in this range
- Errors: the full wire contract, status mapping, and error catalog
- Error handling: branching on type and code, validation details, and vendor_code