core/play/src/main/java/play/mvc/Results.java
public static Result status(int status, Content content, String charset) {
    if (content == null) {
      throw new NullPointerException("Null content");
    }
    return new Result(status, HttpEntity.fromContent(content, charset));
  }
public static Result status(int status, Content content, String charset) {
    if (content == null) {
      throw new NullPointerException("Null content");
    }
    return new Result(status, HttpEntity.fromContent(content, charset));
  }
Generates a simple result.

@param status the HTTP status for this result e.g. 200 (OK), 404 (NOT_FOUND)
@param content the result's body content
@param charset the charset to encode the content with (e.g. "UTF-8")
@return the result