added general http error catcher