xecute-cli 0.1.13

Project and resource generator for Xecute
1
2
3
4
5
6
7
8
//! Public error normalization is shared with the runtime.

pub use xecute::exceptions::normalize_error;

/// Build a safe failure before the outer response boundary adds final headers.
pub fn response(status: axum::http::StatusCode, request_id: &str) -> axum::response::Response {
    xecute::exceptions::error_response(xecute::HttpError::new(status), request_id)
}