nodeStatus method
A node's live status, or null if it has not reported one yet.
A node has no status until its first heartbeat, so a 404 here means "not
yet" rather than "no such node" — the caller shows a waiting state instead
of an error.
Implementation
Future<NodeStatus?> nodeStatus(String id) async {
final json = await _optional(() => get('/nodes/$id/status'));
return json == null ? null : NodeStatus.fromJson(json);
}