]> 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)
committerJohn Griffith <john.griffith@solidfire.com>
Fri, 22 Mar 2013 04:04:27 +0000 (22:04 -0600)
commit385b1907a6e85d4fe0ba764e387e278623e45447
treead5d26ed640b8fbf6fce3d07c7a064a22c230100
parent36e4e85b1f669a9fed873f4a43c783947430c763
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
(cherry picked from commit adb8ba7bff2bc4e2657cf84e9f061433ff947a73)
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