Catch request errors