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

Function status_text

crates/openshell-supervisor-network/src/policy_local.rs:1226–1236  ·  view source on GitHub ↗
(status: u16)

Source from the content-addressed store, hash-verified

1224}
1225
1226fn status_text(status: u16) -> &'static str {
1227 match status {
1228 202 => "Accepted",
1229 400 => "Bad Request",
1230 404 => "Not Found",
1231 500 => "Internal Server Error",
1232 502 => "Bad Gateway",
1233 503 => "Service Unavailable",
1234 _ => "OK",
1235 }
1236}
1237
1238fn error_payload(error: &str, detail: String) -> serde_json::Value {
1239 serde_json::json!({

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected