# werkzeug.exceptions.RequestEntityTooLarge: 413 Request Entity Too Large

- **ID:** `python/flask-request-entity-too-large-413`
- **Domain:** python
- **Category:** config_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Uploaded payload exceeds MAX_CONTENT_LENGTH configured in Flask.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 2.x | active | — | — |
| 3.x | active | — | — |

## Workarounds

1. **** (95% success)
   ```
   app.config['MAX_CONTENT_LENGTH'] = 50 * 1024 * 1024  # 50 MB
   ```
2. **** (90% success)
   ```
   f = request.files['file']\nf.save('/tmp/upload.bin')
   ```

## Dead Ends

- **** — Disables limit globally; DoS risk and reverse proxy may still block. (60% fail)
- **** — Body already truncated; client retries and fails again. (80% fail)
