MCPcopy Index your code
hub / github.com/clawshell/clawshell / error_response

Function error_response

src/app.rs:1111–1114  ·  view source on GitHub ↗
(status: StatusCode, message: &str)

Source from the content-addressed store, hash-verified

1109}
1110
1111fn error_response(status: StatusCode, message: &str) -> Response {
1112 let body = serde_json::json!({ "error": message });
1113 (status, axum::Json(body)).into_response()
1114}
1115
1116#[cfg(test)]
1117mod tests;

Callers 4

handle_statsFunction · 0.85
handle_requestFunction · 0.85

Calls 1

into_responseMethod · 0.80

Tested by

no test coverage detected