Return 403 instead of the view if we can’t get a response out of netbox

This commit is contained in:
2023-01-08 15:07:13 -08:00
parent 9fdc60ac48
commit ab2793d92a

View File

@@ -34,7 +34,7 @@ namespace AS1024.CommunityDocumentationPage.Controllers
_logger.LogError($"Failed to obtain data\n{ex}"); _logger.LogError($"Failed to obtain data\n{ex}");
} }
return View(); return Forbid();
} }
public IActionResult Privacy() public IActionResult Privacy()