public IActionResult Get([FromRoute] string address) { RestClient client = node.CreateClient(); // Get the identity, if it exists. var request = new RestRequest($"/identity/{address}"); IRestResponse <string> response = client.Get <string>(request); //if (response.StatusCode != System.Net.HttpStatusCode.OK) //{ // throw new ApplicationException(response.ErrorMessage); //} return(Ok(response.Content)); }