# error: http: response header too large

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

## Root Cause

The response headers exceed the client's limit, typically set by http.Transport's MaxResponseHeaderBytes.

## Version Compatibility

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

## Workarounds

1. **** (90% success)
   ```
   Set http.Transport.MaxResponseHeaderBytes to a higher value.
   ```
2. **** (85% success)
   ```
   Use a custom http.Client with a larger MaxResponseHeaderBytes.
   ```

## Dead Ends

- **** — The buffer size is not the limiting factor; the header size limit is separate. (75% fail)
- **** — Header compression is not related to the size limit. (80% fail)
