MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / service_error_response

Function service_error_response

crates/openshell-server/src/service_routing.rs:200–207  ·  view source on GitHub ↗
(status: StatusCode, message: &'static str)

Source from the content-addressed store, hash-verified

198}
199
200pub fn service_error_response(status: StatusCode, message: &'static str) -> AxumResponse {
201 (
202 status,
203 [(header::CONTENT_TYPE, "text/plain; charset=utf-8")],
204 message,
205 )
206 .into_response()
207}
208
209async fn proxy_to_endpoint(
210 state: Arc<ServerState>,

Callers 2

into_responseMethod · 0.85

Calls 1

into_responseMethod · 0.80

Tested by

no test coverage detected