MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / http_detail

Function http_detail

src/dashboard/util.rs:140–142  ·  view source on GitHub ↗

JSON error body matching `FastAPI`'s `HTTPException` shape, which the UIs' error paths already understand.

(detail: &str)

Source from the content-addressed store, hash-verified

138/// JSON error body matching `FastAPI`'s `HTTPException` shape, which the UIs'
139/// error paths already understand.
140pub(crate) fn http_detail(detail: &str) -> Value {
141 json!({ "detail": detail })
142}
143
144pub(crate) fn json_error(status: StatusCode, detail: impl Into<String>) -> JsonError {
145 (status, Json(http_detail(&detail.into())))

Callers 15

internal_errorFunction · 0.85
internal_errorFunction · 0.85
internal_errorFunction · 0.85
dry_run_only_responseFunction · 0.85
not_foundFunction · 0.85
internal_errorFunction · 0.85
bad_requestFunction · 0.85
not_foundFunction · 0.85
conflictFunction · 0.85
internal_errorFunction · 0.85
session_payloadFunction · 0.85
node_payloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected