code: public static void invalidRanges(FileRequestContext context) throws IOException {
      context.response.setHeader(CONTENT_RANGE_HEADER, "*/" + context.file.length());
      context.response.sendError(HttpServletResponse.SC_REQUESTED_RANGE_NOT_SATISFIABLE);
    }
docs: Sets the appropriate response headers and error status for bad ranges
  
  @param context
  @throws IOException