From 519c18f92ee7eb9878e14ff8a6d0d8308ddc3e20 Mon Sep 17 00:00:00 2001 From: "sonu.kumar" Date: Wed, 9 Sep 2015 11:44:33 +0530 Subject: [PATCH] Meaningful Exception for over-quota on domains This patch makes meaningful exception to be thrown when over-quota on domains is found. Change-Id: I98c7e41bc14eb758f45bc4d35dd12c0bd98e1b2b Closes-Bug: #1463488 --- designateclient/v1/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designateclient/v1/__init__.py b/designateclient/v1/__init__.py index d38303d..8fb0001 100644 --- a/designateclient/v1/__init__.py +++ b/designateclient/v1/__init__.py @@ -127,7 +127,7 @@ class Client(object): if response.status_code == 400: raise exceptions.BadRequest(**response_payload) - elif response.status_code in (401, 403): + elif response.status_code in (401, 403, 413): raise exceptions.Forbidden(**response_payload) elif response.status_code == 404: raise exceptions.NotFound(**response_payload)