core/play/src/main/java/play/mvc/Results.java
public static Result status(int status, String content, String charset) {
    if (content == null) {
      throw new NullPointerException("Null content");
    }
    return new Result(status, HttpEntity.fromString(content, charset));
  }
public static Result status(int status, String content, String charset) {
    if (content == null) {
      throw new NullPointerException("Null content");
    }
    return new Result(status, HttpEntity.fromString(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 in which to encode the content (e.g. "UTF-8")
@return the result