protected RequestStatus getRequestStatus(RequestStatusResponse response, Set<Resource> associatedResources, RequestStatusMetaData requestStatusMetaData) {
    if (response != null){
      Resource requestResource = new ResourceImpl(Resource.Type.Request);
      if (response.getMessage() != null){
        requestResource.setProperty(PropertyHelper.getPropertyId("Requests", "message"), response.getMessage());
      }
      requestResource.setProperty(PropertyHelper.getPropertyId("Requests", "id"), response.getRequestId());
      requestResource.setProperty(PropertyHelper.getPropertyId("Requests", "status"), "Accepted");
      return new RequestStatusImpl(requestResource, associatedResources, requestStatusMetaData);
    }
    return new RequestStatusImpl(null, associatedResources, requestStatusMetaData);
  }
Get a request status

@return the request status
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AbstractResourceProvider.java