{"record":{"id":"9f6c392b345f47bd","repo":"diegosouzapw/OmniRoute","slug":"http-res-status-9f6c39","errorCode":null,"errorMessage":"HTTP ${res.status}","messagePattern":"HTTP \\$\\{res\\.status\\}","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/app/(dashboard)/dashboard/radar/page.tsx","lineNumber":126,"sourceCode":"  const [hasSupporterKey, setHasSupporterKey] = useState(false);\n  const [supporterKeyMasked, setSupporterKeyMasked] = useState<string | null>(null);\n  const [showKeyForm, setShowKeyForm] = useState(false);\n  // Fetch catalog\n  const fetchCatalog = useCallback(\n    async (showLoading = true) => {\n      if (showLoading) setLoading(true);\n      setError(\"\");\n      try {\n        const res = await fetch(\"/api/radar/catalog\", { cache: \"no-store\" });\n        if (res.status === 404) {\n          // Flag off — treat as not found\n          setFeatureAvailable(false);\n          setEntries([]);\n          setMeta(null);\n          if (showLoading) setLoading(false);\n          return;\n        }\n        if (!res.ok) throw new Error(`HTTP ${res.status}`);\n        setFeatureAvailable(true);\n        const data = await res.json();\n        setEntries(data.entries || []);\n        setMeta(data.meta || null);\n      } catch (err) {\n        setError(err instanceof Error ? err.message : t(\"errorLoading\"));\n      } finally {\n        if (showLoading) setLoading(false);\n      }\n    },\n    [t]\n  );\n  const refreshCatalogSilently = useCallback(() => fetchCatalog(false), [fetchCatalog]);\n\n  // D28 — fetch the referral links section (\"Pegue seus créditos grátis\").\n  // Best-effort: flag off => 404, no cache => empty shape; either way this\n  // never blocks rendering of the rest of the page.\n  const fetchReferrals = useCallback(async () => {","sourceCodeStart":108,"sourceCodeEnd":144,"githubUrl":"https://github.com/diegosouzapw/OmniRoute/blob/a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d/src/app/(dashboard)/dashboard/radar/page.tsx#L108-L144","documentation":"Error \"HTTP ${res.status}\" thrown in diegosouzapw/OmniRoute.","triggerScenarios":"Thrown at src/app/(dashboard)/dashboard/radar/page.tsx:126 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a179ffed5bb2e0b883b9ae7214ce8717b2a94c4d","analyzedAt":"2026-08-25T18:35:09.898Z","schemaVersion":2},"datasetVersion":"2026-08-25T21:54:21.419Z"}