Add xhr response macro