public Response getResponse() {
      Result result = new ResultImpl(new ResultStatus(ResultStatus.STATUS.NOT_FOUND, msg));
      Response.ResponseBuilder builder = Response.status(result.getStatus().getStatusCode()).entity(new JsonSerializer().serialize(result));
      return builder.build();
    }
Build 404 response with msg
@return 404 response with msg
ambari-server/src/main/java/org/apache/ambari/server/api/services/views/ViewInstanceService.java