HTTP response codes should be extracted to constants
Bug #1520159 reported by
Ferenc Horváth
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Pooja Jadhav | ||
Glance |
Fix Released
|
Wishlist
|
Gábor Antal | ||
masakari |
Fix Released
|
Wishlist
|
Dinesh Bhor |
Bug Description
There are several places in the source code where HTTP response codes are used as numeric values. These values should be extracted to a common file and the numeric values should be replaced by constants.
For example:
common/auth.py:186
elif resp.status == 404: --> elif resp.status == HTTP_NOT_FOUND;
api/middleware/
if method == 'GET' and status_code == 204: --> if method == 'GET' and status_code == HTTP_NO_CONTENT:
Changed in glance: | |
assignee: | nobody → Gábor Antal (gabor.antal) |
Changed in glance: | |
importance: | Undecided → Wishlist |
Changed in masakari: | |
assignee: | nobody → Dinesh Bhor (dinesh-bhor) |
Changed in masakari: | |
importance: | Undecided → Low |
importance: | Low → Wishlist |
Changed in cinder: | |
assignee: | nobody → Pooja Jadhav (poojajadhav) |
no longer affects: | swift |
Changed in cinder: | |
milestone: | none → pike-3 |
Changed in cinder: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/273196
Review: https:/