Fixed issue with invalid resource returning an unknown error.