isResourceNotFound static method
Whether code means "resource not found" from a server on version
(null = unknown): -32002 always, and -32602 from 2026-07-28 on.
Implementation
static bool isResourceNotFound(int code, [String? version]) =>
code == errorResourceNotFound ||
(code == errorInvalidParams && (version == null || version.compareTo(v2026_07_28) >= 0));