Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
*404* `Not Found`

Raise if a resource does not exist and never existed.

src/c/i/circuits-3.0.0.dev/tests/web/test_exceptions.py   circuits(Download)
#!/usr/bin/env python
 
from circuits.web import Controller
from circuits.web.exceptions import Forbidden, NotFound, Redirect
 
    def test_notfound(self):
        raise NotFound()
 
    def test_contenttype(self):
        self.response.headers["Content-Type"] = "application/json"