Handle the invalid resource case