diegosouzapw/OmniRoute · error · Error
HTTP ${response.status}
Error message
HTTP ${response.status} What it means
Error "HTTP ${response.status}" thrown in diegosouzapw/OmniRoute.
Source
Thrown at src/app/(dashboard)/dashboard/settings/components/modalityBridge/ModalityBridgeTestButton.tsx:65
const t = useTranslations("settings");
const [running, setRunning] = useState(false);
const [result, setResult] = useState<string | null>(null);
const runTest = async () => {
setRunning(true);
setResult(null);
try {
const response = await fetch("/api/guardrails/test", {
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({
input: SAMPLE_INPUT,
disabledGuardrails: DISABLED_GUARDRAILS,
}),
});
const body: unknown = await response.json().catch(() => null);
if (!response.ok) {
throw new Error(readErrorMessage(body) ?? `HTTP ${response.status}`);
}
const meta = findVisionMeta(body);
if (meta?.rerouted === true) {
setResult(
t("modalityBridgeTestReroute", {
model: String(meta.toModel ?? "unknown"),
})
);
} else if (typeof meta?.imagesProcessed === "number" && meta.imagesProcessed >= 1) {
setResult(
t("modalityBridgeTestOk", {
count: meta.imagesProcessed,
model: String(meta.visionModel ?? "unknown"),
})
);
} else {
setResult(t("modalityBridgeTestNoop"));View on GitHub (pinned to a179ffed5b)
When it happens
Trigger: Thrown at src/app/(dashboard)/dashboard/settings/components/modalityBridge/ModalityBridgeTestButton.tsx:65 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of diegosouzapw/OmniRoute@a179ffed5b (2026-08-25).
Data as JSON: /api/errors/b45ab26d00dfdb30.
Report an issue: GitHub.