{
  "id": "python/flask-404-not-found-route",
  "signature": "werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.",
  "signature_zh": "werkzeug.exceptions.NotFound: 404 未找到：服务器上找不到请求的 URL。如果您手动输入了 URL，请检查拼写并重试。",
  "regex": "werkzeug\\.exceptions\\.NotFound:\\ 404\\ Not\\ Found:\\ The\\ requested\\ URL\\ was\\ not\\ found\\ on\\ the\\ server\\.\\ If\\ you\\ entered\\ the\\ URL\\ manually\\ please\\ check\\ your\\ spelling\\ and\\ try\\ again\\.",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The request URL does not match any registered route, often due to a missing url_prefix or trailing slash mismatch.",
  "root_cause_type": "generic",
  "root_cause_zh": "请求 URL 与任何已注册路由不匹配，通常由于缺少 url_prefix 或尾部斜杠不匹配。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Masks real routing bugs and breaks API semantics.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Only fixes trailing-slash cases, not missing prefixes.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "for rule in app.url_map.iter_rules():\n    print(rule, rule.methods)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.92,
      "how": "app.register_blueprint(api_bp, url_prefix='/api/v1')",
      "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-05-16",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}