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

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)
*403* `Forbidden`

Raise if the user doesn't have the permission for the requested resource
but was authenticated.

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_forbidden(self):
        raise Forbidden()
 
    def test_notfound(self):
        raise NotFound()