Catch httplib.BadStatusLine error