There are several places in the source code where HTTP response
codes are used as numeric values.
Status codes 200, 201, and 202 under api/contrib are replaced with
symbolic constants from six.moves.http_client thus improves code
readability. More patches will be submitted to address other status
codes.
Reviewed: https:/ /review. openstack. org/416862 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=da90ffda5de 64957cad2fa2bae 99aba23029ede1
Committed: https:/
Submitter: Jenkins
Branch: master
commit da90ffda5de6495 7cad2fa2bae99ab a23029ede1
Author: poojajadhav <email address hidden>
Date: Wed Jan 4 14:45:16 2017 +0530
Extracted HTTP response codes to constants
There are several places in the source code where HTTP response
codes are used as numeric values.
Status codes 200, 201, and 202 under api/contrib are replaced with http_client thus improves code
symbolic constants from six.moves.
readability. More patches will be submitted to address other status
codes.
Partial-Bug: #1520159
Change-Id: I944ab762a26888 6715b37bed1704e 4fd56dae4fb