func isIgnoreTransientErrors()

in internal/service/fetchsecret.go [65:73]


func isIgnoreTransientErrors(err error) bool {
	if httpErr, ok := err.(*model.ErrorResponse); ok {
		// client errors that cannot be ignored
		if httpErr.StatusCode >= 400 && httpErr.StatusCode < 500 && httpErr.StatusCode != 429 {
			return false
		}
	}
	return true
}