def __init__(self, code=500, parameter='unknown', text='', headers=None):
        """Initialize IIIFError object.

        Keyword arguments:
        code -- HTTP error/status code, should always specify
        parameter -- parameter causing error to help with debugging
        test -- human explanation to help with debugging
        headers -- additional HTTP headers
        """
        self.code = code
        self.parameter = parameter
        self.text = text
        self.headers = headers if (headers is not None) else ()
        self.content_type = 'text/plain'
        self.pretty_xml = True
def __init__ ( self , code = 500 , parameter = 'unknown' , text = '' , headers = None ) : self . code = code self . parameter = parameter self . text = text self . headers = headers if ( headers is not None ) else ( ) self . content_type = 'text/plain' self . pretty_xml = True
Initialize IIIFError object.

        Keyword arguments:
        code -- HTTP error/status code, should always specify
        parameter -- parameter causing error to help with debugging
        test -- human explanation to help with debugging
        headers -- additional HTTP headers