{
  "id": "python/django-httpresponse-not-callable",
  "signature": "'HttpResponse' object is not callable at /home/",
  "signature_zh": "'HttpResponse'对象不可调用在/home/",
  "regex": "'HttpResponse'\\ object\\ is\\ not\\ callable\\ at\\ /home/",
  "domain": "python",
  "category": "type_error",
  "subcategory": null,
  "root_cause": "Returning an HttpResponse instance but accidentally calling it as a function in the view.",
  "root_cause_type": "generic",
  "root_cause_zh": "返回HttpResponse实例但意外地将其作为函数调用。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Using parentheses after HttpResponse",
      "why_fails": "HttpResponse() returns object, but extra () tries to call it again.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "Misunderstanding function vs class",
      "why_fails": "View should return instance, not call it.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Return instance without extra parentheses",
      "success_rate": 0.95,
      "how": "return HttpResponse('Hello')",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use render shortcut",
      "success_rate": 0.9,
      "how": "return render(request, 'template.html', context)",
      "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-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}