catch proxy errors inside domain