public IActionResult GetStatus(Guid id) { _logger.LogInformation($"GetStatus: got request {id}"); if (id == Guid.Empty) { throw new Exception("empty guid"); } var row = _countersService.GetResultByCorrelationId(id); if (row == null) { return(StatusCode(202)); } return(Ok(row.WordCount)); }