Skip to main content

openrtc/
service_error_codes.rs

1// Generated by scripts/sync-functions-costmodel.mjs from packages/openrtc/src/service-errors.ts.
2// Do not edit this file directly; update the canonical source and rerun the sync script.
3
4pub const SERVICE_ERROR_CODES: &[&str] = &[
5    "credit-exhausted",
6    "app-budget-exhausted",
7    "app-rate-limited",
8    "principal-rate-limited",
9    "edge-rate-limited",
10    "provider-safety-paused",
11    "usage-price-stale",
12    "relay-budget-exhausted",
13    "room-capacity-exceeded",
14];
15pub const LEGACY_SERVICE_ERROR_ALIASES: &[(&str, &str, &str)] = &[
16    ("edge-rate-exceeded", "edge-rate-limited", "ip"),
17    ("route-rate-exceeded", "edge-rate-limited", "avenue"),
18];
19pub const ERROR_DOCUMENTATION_URL: &str = "https://openrtc-docs.web.app/openrtc/api/errors";