catch HTTP exception