exception if resource does not exist