(code: number)
| 84 | * sync if you change the actionable set. |
| 85 | */ |
| 86 | export function isActionableErrorStatus(code: number): boolean { |
| 87 | if (code >= 500) return true |
| 88 | return code === 402 || code === 409 || code === 429 |
| 89 | } |
| 90 | |
| 91 | // Record exception + set ERROR unless the error is an explicit user |
| 92 | // stop (see `isExplicitUserStopError`). Every other cancellation — |