Hi,

On Mon, Jul 27, 2009 at 3:27 PM, Anton Bessonov <[email protected]>wrote:

>
> http/__init__.py describe Http404 Exception as:
>
> class Http404(Exception):
>    pass
>
> You can make own Exception:
>
> class Http403(Exception):
>    pass
>
>
It isn't quite that easy. Django special-cases Http404 (see
django/core/handlers/base.py:112). Simply raising a self-made Http403 will
result in a HTTP 500 error.

Regards,
Benjamin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to