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

« back to all changes in this revision

Viewing changes to ivle/webapp/errors.py

ivle.webapp.console.service: Port www/apps/consoleservice to new framework.
    consoleservice now lives under /console/service, and actions are taken
    in the "ivle.op" query argument, not as the last segment of the path.
    Otherwise the interface is identical.
www/apps/console/console.js: Update to new consoleservice interface.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
    '''A base class for all HTTP errors.'''
22
22
 
23
23
class BadRequest(HTTPError):
24
 
    codename = 'Bad Request'
25
24
    code = 400
26
25
 
27
26
class Forbidden(HTTPError):
28
 
    codename = 'Forbidden'
29
27
    code = 403
30
28
 
31
29
class NotFound(HTTPError):
32
 
    codename = 'Not Found'
33
30
    code = 404
34
31
 
35
32
class MethodNotAllowed(HTTPError):
37
34
        self.allowed = allowed
38
35
        super(HTTPError, self).__init__(*args, **kwargs)
39
36
 
40
 
    codename = 'Method Not Allowed'
41
37
    code = 405