{
  "id": "go/net-http-request-header-too-large",
  "signature": "error: http: request header too large",
  "signature_zh": "错误：http：请求头过大",
  "regex": "error:\\ http:\\ request\\ header\\ too\\ large",
  "domain": "go",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The HTTP request headers exceed the server's maximum header size limit, typically 1MB by default.",
  "root_cause_type": "generic",
  "root_cause_zh": "HTTP请求头超过服务器的最大头大小限制，默认通常为1MB。",
  "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": "Increasing server MaxHeaderBytes arbitrarily",
      "why_fails": "May allow denial-of-service attacks; better to reduce header size.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set a reasonable MaxHeaderBytes on the server",
      "success_rate": 0.95,
      "how": "server := &http.Server{\n    Addr: \":8080\",\n    MaxHeaderBytes: 1 << 20, // 1 MB\n}",
      "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.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-01-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}