<s> class HttpException ( Exception ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , msg , res ) : <EOL> super ( Exception , self ) . __init__ ( msg ) <EOL> self . response = res <EOL> @ property <EOL> def status_code ( self ) : <EOL> return self . response . status_code <EOL> @ property <EOL> def headers ( self ) : <EOL> return self . response . headers <EOL> @ property <EOL> def content ( self ) : <EOL> return self . response . content <EOL> class EmptyResponseWarning ( HttpException ) : <EOL> pass <EOL> class ClientRequestException ( HttpException ) : <EOL> pass <EOL> class ServerException ( HttpException ) : <EOL> pass <EOL> class RedirectionException ( HttpException ) : pass <EOL> class NotLoggedInException ( Exception ) : pass </s>
