core/play/src/main/java/play/mvc/Results.java
public static Result notAcceptable(Path content, boolean inline) {
    return notAcceptable(content, inline, StaticFileMimeTypes.fileMimeTypes());
  }
public static Result notAcceptable(Path content, boolean inline) {
    return notAcceptable(content, inline, StaticFileMimeTypes.fileMimeTypes());
  }
Generates a 406 Not Acceptable result.

@param content The path to send.
@param inline Whether the file should be sent inline, or as an attachment.
@return the result