mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 16:22:20 +00:00
docs(routes): tighten the outage comments and notes
Shorter comments, changelog and CURRENT-STATE text for the 502 outage path; the CURRENT-STATE paragraph now also names the 429 exception and which budget expiry answers busy and which answers 502. Text only.
This commit is contained in:
1 parent
a29611ca17
commit
82e2b716bc
7 files changed
+20
-36
No files matched your search
+1
-2
@@ -189,8 +189,7 @@ export function createRouteService({
|
||||
} catch {
|
||||
/* the status below is authoritative */
|
||||
}
|
||||
// A rate limit or an outage (5xx) is the routing service's failure, not
|
||||
// a missing route, whatever the body says. Voice hears this message.
|
||||
// Handle 429 and 5xx before route refusals, regardless of the body.
|
||||
if (response.status === 429) throw httpFailure(response, 'Routing');
|
||||
if (response.status >= 500)
|
||||
throw new ToolError(
|
||||
|
||||
Reference in new issue
Block a user