package pagerduty import "strings" func isNotFound(err error) bool { if strings.Contains(err.Error(), "Failed call API endpoint. HTTP response code: 404") { return true } return false }