Skip to content

Commit 445c724

Browse files
lciancodex
andcommitted
ref(service): Classify service errors by kind
Add service-level error kinds so API handlers can map failures without matching every backend-specific variant. Keep client metadata errors distinct from internal metadata failures and classify transient backend failures as retryable/service-unavailable paths. Co-Authored-By: OpenAI Codex <noreply@openai.com>
1 parent 34180eb commit 445c724

13 files changed

Lines changed: 679 additions & 200 deletions

File tree

Cargo.lock

Lines changed: 61 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ stresstest = { path = "stresstest" }
3434
anyhow = "1.0.69"
3535
async-trait = "0.1.88"
3636
bytes = "1.11.1"
37+
derive-error-kind = "0.1.0"
3738
futures = "0.3.31"
3839
futures-util = "0.3.31"
3940
http = "1.3.1"

0 commit comments

Comments
 (0)