summaryrefslogtreecommitdiff
path: root/designate/api/v2/controllers/root.py
diff options
context:
space:
mode:
Diffstat (limited to 'designate/api/v2/controllers/root.py')
-rw-r--r--designate/api/v2/controllers/root.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/designate/api/v2/controllers/root.py b/designate/api/v2/controllers/root.py
index d989ff89..d7e2d73d 100644
--- a/designate/api/v2/controllers/root.py
+++ b/designate/api/v2/controllers/root.py
@@ -13,6 +13,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
+from designate import exceptions
from designate.openstack.common import log as logging
from designate.api.v2.controllers import limits
from designate.api.v2.controllers import reverse
@@ -21,6 +22,8 @@ from designate.api.v2.controllers import tlds
from designate.api.v2.controllers import zones
from designate.api.v2.controllers import blacklists
+from pecan import expose
+
LOG = logging.getLogger(__name__)
@@ -35,3 +38,9 @@ class RootController(object):
tlds = tlds.TldsController()
zones = zones.ZonesController()
blacklists = blacklists.BlacklistsController()
+
+ @expose(content_type='text/plain')
+ @expose(content_type='text/dns')
+ @expose(content_type='application/json')
+ def not_found(self):
+ raise exceptions.NotFound