added resourceCollectionOrError to response object