From 8b8b8e8234032b8681bb11940c7bff832693316e Mon Sep 17 00:00:00 2001 From: "glm-5.2" Date: Wed, 1 Jul 2026 17:10:44 +0000 Subject: [PATCH] docs(http): mark http/gateway/error-mapping completed --- tasks/http/gateway/error-mapping.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tasks/http/gateway/error-mapping.md b/tasks/http/gateway/error-mapping.md index bcf64cc..da3e433 100644 --- a/tasks/http/gateway/error-mapping.md +++ b/tasks/http/gateway/error-mapping.md @@ -1,7 +1,7 @@ --- id: http/gateway/error-mapping name: Implement CallError-to-HTTP-status error mapping (ADR-023) -status: pending +status: completed depends_on: [http/crate-init] scope: narrow risk: low @@ -136,4 +136,9 @@ pub fn call_error_to_http_status_with_identity( ## Summary -> To be filled on completion \ No newline at end of file +> Implemented call_error_to_http_status, call_error_to_http_status_with_identity +> (FORBIDDEN→401 no identity / 403 identity present), and call_error_to_http_response +> (JSON body + Retry-After for retryable 503/429 with details.retry_after) in +> src/gateway/error.rs. Five protocol codes map to fixed statuses. HTTP_- +> prefixed operation-level codes parse status from prefix (no collision). Unknown +> operation-level codes default to 500. 21 unit tests. Build/clippy/test all clean. \ No newline at end of file