refactor: centralize failover error parsing

This commit is contained in:
Peter Steinberger
2026-01-10 01:25:01 +01:00
parent 82ffcfb181
commit 53ec8e36cb
7 changed files with 98 additions and 58 deletions

View File

@@ -50,6 +50,8 @@ export function resolveFailoverStatus(
return 401;
case "timeout":
return 408;
case "format":
return 400;
default:
return undefined;
}