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)
| 726 | // that don't know their resource kind. New callers should use |
| 727 | // classifyHTTPStatusKind directly. |
| 728 | func 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 |