github.com/recobe182/terraform@v0.8.5-0.20170117231232-49ab22a935b7/builtin/providers/pagerduty/errors.go (about) 1 package pagerduty 2 3 import "strings" 4 5 func isNotFound(err error) bool { 6 if strings.Contains(err.Error(), "Failed call API endpoint. HTTP response code: 404") { 7 return true 8 } 9 10 return false 11 }