cinder/cinder/api/v2
poojajadhav 92980e4972 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,
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.

Partial-Bug: #1520159
Change-Id: I7c61122a6b043d7d238bea95ef39d8fa97817df4
2017-03-22 12:00:41 +05:30
..
views CG API changes for migrating CGs 2016-11-22 19:08:20 -05:00
__init__.py adding copy of v1 as v2 2012-11-21 21:26:40 -08:00
limits.py Extracted HTTP response codes to constants 2017-03-22 12:00:41 +05:30
router.py Remove unused logging import and LOG global var 2016-05-20 17:17:38 +08:00
snapshot_metadata.py Extracted HTTP response codes to constants 2017-03-22 12:00:41 +05:30
snapshots.py Extracted HTTP response codes to constants 2017-03-22 12:00:41 +05:30
types.py Handle API NotFound exceptions at WSGI level 2016-07-22 21:06:13 +02:00
volume_metadata.py Extracted HTTP response codes to constants 2017-03-22 12:00:41 +05:30
volumes.py Extracted HTTP response codes to constants 2017-03-22 12:00:41 +05:30