if (!inputFile.isFile()) {
    response.sendError(HttpServletResponse.SC_NOT_FOUND,
      "File not found: " + request.getPathTranslated());
    return;
}