MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / classifyHTTPStatus

Function classifyHTTPStatus

internal/mcp/errors.go:728–730  ·  view source on GitHub ↗

classifyHTTPStatus is the legacy entry point preserved for callers that don't know their resource kind. New callers should use classifyHTTPStatusKind directly.

(ctx context.Context, cmdKey string, status int, body []byte, lookup WorkspaceLister)

Source from the content-addressed store, hash-verified

726// that don't know their resource kind. New callers should use
727// classifyHTTPStatusKind directly.
728func classifyHTTPStatus(ctx context.Context, cmdKey string, status int, body []byte, lookup WorkspaceLister) *mcp.CallToolResult {
729 return classifyHTTPStatusKind(ctx, cmdKey, "", status, body, lookup, ResourceUnknown, "")
730}
731
732// classifyHTTPStatusKind turns an HTTP error response into a structured
733// envelope, using the dispatcher's known resource context to emit the

Calls 1

classifyHTTPStatusKindFunction · 0.85