There are several places in the source code where HTTP response
codes are used as numeric values.
Status codes 202, 204, 300 and 412 under api/v3 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/426749 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=9f874a9ca05 721228549f0be62 a348cd1d1e8d90
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9f874a9ca057212 28549f0be62a348 cd1d1e8d90
Author: poojajadhav <email address hidden>
Date: Mon Jan 23 19:20:33 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 202, 204, 300 and 412 under api/v3 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: I60d8d99827bfa1 a6fc5b6dbb67d1d 1fb3a3b95fe