# http: response body too large

- **ID:** `go/http-response-body-too-large`
- **Domain:** go
- **Category:** network_error
- **Verification:** ai_generated
- **Fix Rate:** 80%

## Root Cause

The server sent a response body that exceeds the client's configured limit, often due to a missing Content-Length header.

## Version Compatibility

| Version | Status | Introduced | Deprecated |
|---------|--------|------------|------------|
| 1.17 | active | — | — |
| 1.18 | active | — | — |
| 1.19 | active | — | — |

## Workarounds

1. **** (90% success)
   ```
   Use io.LimitReader on the response body with a reasonable limit.
   ```
2. **** (85% success)
   ```
   Set MaxBytesReader on the server side to limit request sizes.
   ```

## Dead Ends

- **** — This may cause memory exhaustion. (60% fail)
- **** — The response is incomplete and may cause parsing errors. (80% fail)
