diff options
author | Ashleigh Farnham <ashleighfarnham@gmail.com> | 2015-01-28 15:32:07 -0800 |
---|---|---|
committer | Ashleigh Farnham <ashleighfarnham@gmail.com> | 2015-01-28 15:58:24 -0800 |
commit | 54fa006ea2ed5568b276a176c078bc782da58473 (patch) | |
tree | 0d54fe8463548e4c5ea75f0ae8826300a08a51d5 /trove/common/wsgi.py | |
parent | 23a682b89d0632732aead6345c189d88ad040eb8 (diff) | |
download | trove-54fa006ea2ed5568b276a176c078bc782da58473.tar.gz |
Update DatastoreNotFound status code to 404
Explicitly specifying DatastoreNotFound exception to return http
status code 404. Previously we weren't specifying the status code
for the exception and were returning 400 by default. The unit test
depending on the previous status code has been updated to reflect
this change.
Closes-Bug: 1415031
Change-Id: I30bd97d53d1d51704133eb63e25f32a20cf0d9a1
Diffstat (limited to 'trove/common/wsgi.py')
-rw-r--r-- | trove/common/wsgi.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trove/common/wsgi.py b/trove/common/wsgi.py index d2056843..6d05476e 100644 --- a/trove/common/wsgi.py +++ b/trove/common/wsgi.py @@ -338,7 +338,8 @@ class Controller(object): exception.DatabaseNotFound, exception.QuotaResourceUnknown, exception.BackupFileNotFound, - exception.ClusterNotFound + exception.ClusterNotFound, + exception.DatastoreNotFound, ], webob.exc.HTTPConflict: [ exception.BackupNotCompleteError, |