github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/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 }