class HealthController {

    @GetMapping("")
    public void home(HttpServletResponse response) throws IOException {
        String siteUrl = appProperties.getSiteUrl();
        if (StringUtils.isEmpty(siteUrl)) {
            response.sendError(
                HttpStatus.NOT_FOUND.value(),
                HttpStatus.NOT_FOUND.getReasonPhrase());
            return;
        }

        response.sendRedirect(siteUrl);
    }

}