Let's assume there's a existing resource foo with name bar and then there's a TF Provider for creating these resources so a user tries to create
resource "foo" "example" {
name = "bar"
}
and when a user runs terraform apply, they receive 409 status code (after an internal POST call from TF Provider) since such a resource exists already.
Is it a thing for TF Provider to handle it automatically and figure out that there's the exact same resource already or it's OK to fail with 409 to let a user figure it out manually?