]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Switch all uses of 422 response code to 400.
authorMatthew Treinish <treinish@linux.vnet.ibm.com>
Wed, 13 Mar 2013 17:28:10 +0000 (13:28 -0400)
committerMatthew Treinish <treinish@linux.vnet.ibm.com>
Thu, 14 Mar 2013 14:57:01 +0000 (10:57 -0400)
commitadb8ba7bff2bc4e2657cf84e9f061433ff947a73
tree2aaf7c1cd65ebd7fb894cb1703969e30a6c4bcab
parent2d84a97df28fae40a8b5b3d422a702794284beb8
Switch all uses of 422 response code to 400.

The 422 response is normally only for WebDAV, and these types of
errors should normally return a 400 code, HTTPBadRequest. This
commit goes through all the remaining 422 codes and changes them
to 400 responses.

Fixes bug 1153807

Change-Id: I9bf49643763c2cb0ac585641056c85a060152e36
cinder/api/contrib/backups.py
cinder/api/contrib/services.py
cinder/api/contrib/types_manage.py
cinder/api/v2/snapshots.py
cinder/api/v2/volumes.py
cinder/tests/api/contrib/test_backups.py
cinder/tests/api/contrib/test_types_manage.py
cinder/tests/api/v2/test_snapshots.py
cinder/tests/api/v2/test_volumes.py