Catch error if resource doesn't exist