Build a "resource not found" error using the legacy MCP-specific code
(-32002). Kept for backwards compatibility; this form always emits -32002.
Draft connections should instead use the version-aware overload below, which
selects the version-appropriate code (draft aligns it to invalidParams /
-32602).
Build a "resource not found" error using the legacy MCP-specific code (-32002). Kept for backwards compatibility; this form always emits -32002. Draft connections should instead use the version-aware overload below, which selects the version-appropriate code (draft aligns it to invalidParams / -32602).