private Result createInvalidRequestResult(String msg) {
    return new ResultImpl(new ResultStatus(ResultStatus.STATUS.BAD_REQUEST, "Invalid Request: " + msg));
  }
Convenience method to create a result for invalid requests.

@param msg  message indicating why the request is invalid

@return  a request with a 400 status and msg set
ambari-server/src/main/java/org/apache/ambari/server/api/handlers/QueryCreateHandler.java