(self, app, errors=(400, 401, 403, 404),
                 path='/error/document')
Initialize the ErrorRedirect

        ``errors``
            A sequence (list, tuple) of error code integers that should
            be caught.
        ``path``
            The path to set for the next request down to the
            application.
Initialize the ErrorRedirect
Initialize the ErrorRedirect
def __init__(self, app, errors=(400, 401, 403, 404),
                 path='/error/document'):
        """Initialize the ErrorRedirect

        ``errors``
            A sequence (list, tuple) of error code integers that should
            be caught.
        ``path``
            The path to set for the next request down to the
            application.

        """
        self.app = app
        self.error_path = path

        # Transform errors to str for comparison
        self.errors = tuple([str(x) for x in errors])
def __init__ ( self , app , errors = ( 400 , 401 , 403 , 404 ) , path = '/error/document' ) : self . app = app self . error_path = path # Transform errors to str for comparison self . errors = tuple ( [ str ( x ) for x in errors ] )