public async Task <IActionResult> GetNodeInfo()
        {
            NodeInfo res;

            try
            {
                res = await _repository.GetNodeInfoAsync();
            }
            catch (Exception e)
            {
                _logger.LogError(e, "Error occured in " + nameof(GetNodeInfo));
                return(StatusCode(504)); // return 404 error
            }
            return(Json(res));           // Format the output
        }