~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/errors.py

Error views are now retrieved from a class method of the view, not the plugin
registry. They also now discriminate based on exception type.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    codename = 'Bad Request'
25
25
    code = 400
26
26
 
27
 
class Unauthorized(HTTPError):
28
 
    codename = 'Unauthorized'
29
 
    code = 401
30
 
 
31
27
class Forbidden(HTTPError):
32
28
    codename = 'Forbidden'
33
29
    code = 403