public ActionResult GetArchiveStatus(string packageId) { try { _indexService.PurgeOldArchives(); return(new JsonResult(new { success = new { status = _indexService.GetPackageArchiveStatus(packageId) } })); } catch (PackageNotFoundException) { return(Responses.NotFoundError(this, $"Package ${packageId} not found.")); } catch (Exception ex) { _log.LogError(ex, "Unexpected error"); return(Responses.UnexpectedError()); } }