Modify _verify_response to validate response codes.
Modify _verify_response to validate response codes.

The method will now take a response code as an additional
parameter and will validate it against the actual one.
Fixes bug 1156684

Change-Id: Idba3f54ed50b359d9230707fb45e7c5ea68e6b7d

BeyondTheClouds/nova,sridevikoushik31/nova,leilihh/novaha,rrader/nova-docker-plugin,silenceli/nova,bigswitch/nova,watonyweng/nova,petrutlucian94/nova_dev,tealover/nova,ewindisch/nova,eayunstack/nova,felixma/nova,ntt-sic/nova,tianweizhang/nova,leilihh/nova,tangfeixiong/nova,SUSE-Cloud/nova,CCI-MOC/nova,imsplitbit/nova,cloudbase/nova,nikesh-mahalka/nova,sridevikoushik31/nova,Tehsmash/nova,cloudbase/nova,CEG-FYP-OpenStack/scheduler,tudorvio/nova,hanlind/nova,rahulunair/nova,ted-gould/nova,vmturbo/nova,luogangyi/bcec-nova,shootstar/novatest,shahar-stratoscale/nova,Brocade-OpenSource/OpenStack-DNRM-Nova,edulramirez/nova,mikalstill/nova,CloudServer/nova,citrix-openstack-build/nova,MountainWei/nova,gooddata/openstack-nova,yatinkumbhare/openstack-nova,CCI-MOC/nova,berrange/nova,thomasem/nova,shootstar/novatest,openstack/nova,hanlind/nova,CloudServer/nova,alvarolopez/nova,CiscoSystems/nova,gooddata/openstack-nova,klmitch/nova,adelina-t/nova,takeshineshiro/nova,jianghuaw/nova,virtualopensystems/nova,sacharya/nova,CEG-FYP-OpenStack/scheduler,whitepages/nova,zhimin711/nova,rrader/nova-docker-plugin,dawnpower/nova,mahak/nova,gooddata/openstack-nova,spring-week-topos/nova-week,projectcalico/calico-nova,jianghuaw/nova,scripnichenko/nova,ruslanloman/nova,petrutlucian94/nova,leilihh/novaha,fnordahl/nova,CiscoSystems/nova,Tehsmash/nova,shail2810/nova,Stavitsky/nova,iuliat/nova,vmturbo/nova,eharney/nova,TwinkleChawla/nova,openstack/nova,akash1808/nova_test_latest,cloudbau/nova,noironetworks/nova,jianghuaw/nova,Juniper/nova,affo/nova,rahulunair/nova,joker946/nova,takeshineshiro/nova,tudorvio/nova,LoHChina/nova,Metaswitch/calico-nova,angdraug/nova,petrutlucian94/nova,mandeepdhami/nova,Juniper/nova,viggates/nova,belmiromoreira/nova,klmitch/nova,sridevikoushik31/nova,belmiromoreira/nova,Yusuke1987/openstack_template,alexandrucoman/vbox-nova-driver,bgxavier/nova,barnsnake351/nova,DirectXMan12/nova-hacking,gooddata/openstack-nova,mgagne/nova,mikalstill/nova,saleemjaveds/https-github.com-openstack-nova,cyx1231st/nova,eonpatapon/nova,spring-week-topos/nova-week,kimjaejoong/nova,devendermishrajio/nova,SUSE-Cloud/nova,TieWei/nova,BeyondTheClouds/nova,mandeepdhami/nova,devoid/nova,qwefi/nova,JioCloud/nova,joker946/nova,yatinkumbhare/openstack-nova,cyx1231st/nova,openstack/nova,vmturbo/nova,ntt-sic/nova,mikalstill/nova,tanglei528/nova,raildo/nova,redhat-openstack/nova,viggates/nova,DirectXMan12/nova-hacking,cloudbau/nova,thomasem/nova,cloudbase/nova,noironetworks/nova,orbitfp7/nova,nikesh-mahalka/nova,OpenAcademy-OpenStack/nova-scheduler,apporc/nova,hanlind/nova,varunarya10/nova_test_latest,cloudbase/nova-virtualbox,ted-gould/nova,alaski/nova,plumgrid/plumgrid-nova,saleemjaveds/https-github.com-openstack-nova,j-carpentier/nova,rajalokan/nova,klmitch/nova,JioCloud/nova_test_latest,j-carpentier/nova,eayunstack/nova,akash1808/nova_test_latest,varunarya10/nova_test_latest,alexandrucoman/vbox-nova-driver,alvarolopez/nova,leilihh/nova,zzicewind/nova,imsplitbit/nova,affo/nova,bgxavier/nova,NeCTAR-RC/nova,citrix-openstack-build/nova,petrutlucian94/nova_dev,plumgrid/plumgrid-nova,mahak/nova,double12gzh/nova,zaina/nova,edulramirez/nova,rajalokan/nova,Brocade-OpenSource/OpenStack-DNRM-Nova,sebrandon1/nova,JianyuWang/nova,angdraug/nova,virtualopensystems/nova,rahulunair/nova,yosshy/nova,jeffrey4l/nova,jeffrey4l/nova,berrange/nova,Juniper/nova,rickerc/nova_audit,Yuriy-Leonov/nova,vmturbo/nova,qwefi/nova,blueboxgroup/nova,zzicewind/nova,badock/nova,isyippee/nova,devendermishrajio/nova_test_latest,fnordahl/nova,DirectXMan12/nova-hacking,devendermishrajio/nova_test_latest,double12gzh/nova,cernops/nova,akash1808/nova,zaina/nova,JianyuWang/nova,TieWei/nova,isyippee/nova,rajalokan/nova,ewindisch/nova,sridevikoushik31/nova,JioCloud/nova,OpenAcademy-OpenStack/nova-scheduler,dims/nova,zhimin711/nova,mmnelemane/nova,blueboxgroup/nova,shahar-stratoscale/nova,tealover/nova,projectcalico/calico-nova,klmitch/nova,phenoxim/nova,vladikr/nova_drafts,badock/nova,tangfeixiong/nova,NeCTAR-RC/nova,Stavitsky/nova,silenceli/nova,eharney/nova,devendermishrajio/nova,akash1808/nova,Yuriy-Leonov/nova,kimjaejoong/nova,luogangyi/bcec-nova,eonpatapon/nova,barnsnake351/nova,sebrandon1/nova,felixma/nova,Francis-Liu/animated-broccoli,vladikr/nova_drafts,TwinkleChawla/nova,watonyweng/nova,cernops/nova,tanglei528/nova,jianghuaw/nova,Yusuke1987/openstack_template,redhat-openstack/nova,mahak/nova,dawnpower/nova,dims/nova,yosshy/nova,phenoxim/nova,shail2810/nova,scripnichenko/nova,Juniper/nova,adelina-t/nova,sacharya/nova,iuliat/nova,tianweizhang/nova,mgagne/nova,cloudbase/nova-virtualbox,ruslanloman/nova,raildo/nova,maelnor/nova,devoid/nova,whitepages/nova,bclau/nova,alaski/nova,orbitfp7/nova,JioCloud/nova_test_latest,MountainWei/nova,sebrandon1/nova,Francis-Liu/animated-broccoli,BeyondTheClouds/nova,bclau/nova,rickerc/nova_audit,apporc/nova,LoHChina/nova,rajalokan/nova,mmnelemane/nova,maelnor/nova,cernops/nova,bigswitch/nova,Metaswitch/calico-nova