try {
outputFileToResponse(response, file);
} catch (SocketException e) {
throw new ClientAbortException(e);
} catch (IOException e) {
throw new HttpException(e);
}
}
} else {
log.warn("File '" + file.getName() + "' not exist.");
HttpErrorMessage.error404(response);