Added assertions on response code