Implements call_error_to_http_status, call_error_to_http_status_with_identity, and call_error_to_http_response in src/gateway/error.rs. Five protocol codes map to fixed statuses (404/422/504/500 + 401/403 split for FORBIDDEN). HTTP_<status>-prefixed operation-level codes parse status from prefix. Unknown operation-level codes default to 500. Retry-After header for retryable 503/429. 21 unit tests. # Conflicts: # crates/alknet-http/src/gateway/mod.rs
11 lines
343 B
Rust
11 lines
343 B
Rust
//! Gateway: shared dispatch spine (`GatewayDispatch`) and error mapping.
|
|
//!
|
|
//! The 5 fixed gateway endpoints (`/search`, `/schema`, `/call`, `/batch`,
|
|
//! `/subscribe`) are the sole HTTP invoke path (ADR-042/047). See
|
|
//! `docs/architecture/crates/http/http-server.md`.
|
|
|
|
pub mod dispatch;
|
|
pub mod error;
|
|
|
|
pub use dispatch::GatewayDispatch;
|