There are several places in the source code where HTTP response
codes are used as numeric values.
Status codes 200, 201, 202, 400, 403, 404, 405, 413, 500 under
tests/unit/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/426747 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=baa945bf3eb d55b7a5a1144183 9f113c73b68ef7
Committed: https:/
Submitter: Jenkins
Branch: master
commit baa945bf3ebd55b 7a5a11441839f11 3c73b68ef7
Author: poojajadhav <email address hidden>
Date: Tue Jan 3 18:56:07 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, 202, 400, 403, 404, 405, 413, 500 under unit/api/ contrib are replaced with symbolic constants from moves.http_ client thus improves code readability. More patches
tests/
six.
will be submitted to address other status codes.
Partial-Bug: #1520159 f897ba33121a2c6 e382997faf7
Change-Id: I924b033dd4c07b