handle proxy errors