# werkzeug.exceptions.BadRequest: 400 Bad Request: The browser (or proxy) sent a request that this server could not understand.

- **ID:** `python/flask-request-cookie-parse-error`
- **Domain:** python
- **Category:** data_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

Malformed cookie header in the request, causing parsing failure.

## Version Compatibility

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

## Workarounds

1. **** (80% success)
   ```
   Use request.cookies.get('key') which returns None on parsing error? Actually, it raises; wrap in try/except BadRequest.
   ```
2. **** (70% success)
   ```
   Validate the cookie header manually before accessing
   ```

## Dead Ends

- **** — Raises BadRequest; you need to handle it. (90% fail)
- **** — The request is invalid; you should return a 400. (60% fail)
