{
  "id": "python/starlette-http-405-method-not-allowed",
  "signature": "HTTPException: 405 Method Not Allowed",
  "signature_zh": "HTTP异常：405 方法不允许",
  "regex": "HTTPException:\\ 405\\ Method\\ Not\\ Allowed",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The HTTP method used is not allowed for the requested endpoint.",
  "root_cause_type": "generic",
  "root_cause_zh": "使用的HTTP方法不允许用于请求的端点。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Assuming all methods are allowed by default.",
      "why_fails": "Routes are defined with specific methods; others are rejected.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using POST instead of GET without checking the endpoint definition.",
      "why_fails": "The endpoint may only accept GET requests.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check the allowed methods for the endpoint and use the correct one.",
      "success_rate": 0.95,
      "how": "Check route: @app.route('/items', methods=['GET'])",
      "condition": "",
      "sources": []
    },
    {
      "action": "Add the missing method to the route decorator.",
      "success_rate": 0.9,
      "how": "@app.route('/items', methods=['GET', 'POST'])",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-12-01",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}