summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-07-13 16:12:01 +0000
committerGerrit Code Review <review@openstack.org>2012-07-13 16:12:01 +0000
commitcbeb9457ddb43d12d44fc07bd64d8dce2abdbcd6 (patch)
tree0937f984c36f7be984e3ccf0ce83bd811a11468a /nova/api
parent03de59d976e1c2e821ebfa2ee8933083c92a27e6 (diff)
parentb0da2c4f4ed492f11c343852442e447073a5af76 (diff)
Merge "When over quota for floating ips, return HTTPRequestEntityTooLarge."
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/contrib/floating_ips.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/compute/contrib/floating_ips.py b/nova/api/openstack/compute/contrib/floating_ips.py
index ed5f61d53..df25e4fd2 100644
--- a/nova/api/openstack/compute/contrib/floating_ips.py
+++ b/nova/api/openstack/compute/contrib/floating_ips.py
@@ -174,7 +174,7 @@ class FloatingIPController(object):
msg = _("No more floating ips in pool %s.") % pool
else:
msg = _("No more floating ips available.")
- raise webob.exc.HTTPBadRequest(explanation=msg)
+ raise webob.exc.HTTPRequestEntityTooLarge(explanation=msg)
return _translate_floating_ip_view(ip)