There are several places in the source code where HTTP response
codes are used as numeric values.
Status codes 101, 200, 201, 202, 400, 401, 403, 404, 409, 413, 422, 424
and 500 under tests/unit/volume/drivers 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/434895 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=dd495b880d0 333b8a8a8fa21be 807d456375d5c9
Committed: https:/
Submitter: Jenkins
Branch: master
commit dd495b880d0333b 8a8a8fa21be807d 456375d5c9
Author: poojajadhav <email address hidden>
Date: Wed Jan 25 21:07:42 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 101, 200, 201, 202, 400, 401, 403, 404, 409, 413, 422, 424 volume/ drivers are replaced with symbolic http_client thus improves code readability.
and 500 under tests/unit/
constants from six.moves.
More patches will be submitted to address other status codes.
Partial-Bug: #1520159 626e3f0c8fa9a15 1fe1927ee3b
Change-Id: I491bd9a6e09d39