There are several places in the source code where HTTP response
codes are used as numeric values.
Status codes 200, 202, 204, 300, 400, 401, 403, 404, 405, 409, 413,
415, 500, 501, 503 under api/v1 and api/v2 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/426748 /git.openstack. org/cgit/ openstack/ cinder/ commit/ ?id=92980e49723 56f16389539b4cc 926d7b4ec1dc3c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 92980e4972356f1 6389539b4cc926d 7b4ec1dc3c
Author: poojajadhav <email address hidden>
Date: Wed Jan 4 15:59:44 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, 202, 204, 300, 400, 401, 403, 404, 405, 409, 413, http_client thus improves code readability.
415, 500, 501, 503 under api/v1 and api/v2 are replaced with symbolic
constants from six.moves.
More patches will be submitted to address other status codes.
Partial-Bug: #1520159 7d238bea95ef39d 8fa97817df4
Change-Id: I7c61122a6b043d