Python Paste


HTTPVariableNotFound

Raised when a form variable can't be found. Catching either of HTTPBadRequest or KeyError will work, plus this will turn into a better response when a variable isn't found.


Attributes

a comment

''

a code

400

a title

'Bad Request'

a explanation

'The server could not comply with the request since\r\nit is either malformed or otherwise incorrect.\r\n'

a detail

''

a template

'%(explanation)s\r\n<br/>%(detail)s\r\n<!-- %(comment)s -->'

Methods

f __getitem__(...) ...

f __init__(self, detail=None, headers=None, comment=None) ...

f __call__(self, environ, start_response, exc_info=None) ...

This exception as a WSGI application

See the source for more information.