{
  "id": "python/flask-static-file-not-found",
  "signature": "werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server",
  "signature_zh": "Werkzeug异常：未找到404：请求的URL在服务器上未找到",
  "regex": "werkzeug\\.exceptions\\.NotFound:\\ 404\\ Not\\ Found:\\ The\\ requested\\ URL\\ was\\ not\\ found\\ on\\ the\\ server",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Flask cannot find a static file because the file is missing or the URL path is incorrect.",
  "root_cause_type": "generic",
  "root_cause_zh": "Flask找不到静态文件，因为文件缺失或URL路径错误。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Placing static files in the templates folder",
      "why_fails": "Flask serves static files from a 'static' folder by default.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using absolute path in the URL",
      "why_fails": "Flask expects relative paths from the static folder.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Place the file in the 'static' folder and use correct URL",
      "success_rate": 0.95,
      "how": "mkdir static\nmv style.css static/\n# Access via /static/style.css",
      "condition": "",
      "sources": []
    },
    {
      "action": "Configure custom static folder",
      "success_rate": 0.9,
      "how": "app = Flask(__name__, static_folder='assets')",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-04-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}