{
  "id": "api/http-400-missing-required-header",
  "signature": "400 Bad Request: Missing required header 'X-Request-Id'",
  "signature_zh": "400 错误请求：缺少必需的请求头 'X-Request-Id'",
  "regex": "Missing required header",
  "domain": "api",
  "category": "request_error",
  "subcategory": null,
  "root_cause": "The API endpoint requires a specific HTTP header that the client did not include in the request.",
  "root_cause_type": "generic",
  "root_cause_zh": "API 端点需要特定的 HTTP 请求头，但客户端未在请求中包含该头。",
  "versions": [
    {
      "version": "REST API",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "OpenAPI 3.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Express.js v4",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "FastAPI v0.100",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The server may validate the header's format or content, not just its presence.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Headers are request-specific; response headers are ignored.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Add the header to the request: in curl, use `-H 'X-Request-Id: abc123'`; in Python requests, use `headers={'X-Request-Id': 'abc123'}`.",
      "success_rate": 0.95,
      "how": "Add the header to the request: in curl, use `-H 'X-Request-Id: abc123'`; in Python requests, use `headers={'X-Request-Id': 'abc123'}`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check the API documentation for a list of all required headers and their expected values (e.g., length, format).",
      "success_rate": 0.9,
      "how": "Check the API documentation for a list of all required headers and their expected values (e.g., length, format).",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Add the header to the request: in curl, use `-H 'X-Request-Id: abc123'`; in Python requests, use `headers={'X-Request-Id': 'abc123'}`.",
    "Check the API documentation for a list of all required headers and their expected values (e.g., length, format)."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.9,
  "resolvable": "true",
  "first_seen": "2024-02-14",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}