{
  "id": "go/net-http-response-body-too-large",
  "signature": "error: http: response body too large",
  "signature_zh": "错误：http：响应体过大",
  "regex": "error:\\ http:\\ response\\ body\\ too\\ large",
  "domain": "go",
  "category": "resource_error",
  "subcategory": null,
  "root_cause": "The HTTP response body exceeds the maximum allowed size, typically due to server sending large data without proper limits.",
  "root_cause_type": "generic",
  "root_cause_zh": "HTTP响应体超过允许的最大大小，通常由于服务器发送大量数据而未设置适当限制。",
  "versions": [
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Reading entire body into memory",
      "why_fails": "May cause out-of-memory; use io.LimitReader.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use io.LimitReader to cap response size",
      "success_rate": 0.95,
      "how": "maxSize := int64(10 << 20) // 10 MB\nbody, err := io.ReadAll(io.LimitReader(resp.Body, maxSize))\nif err != nil { return err }\nif int64(len(body)) == maxSize { /* handle truncation */ }",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2026-01-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}