func IsStatusOK(resp *spoof.Response) (bool, error) {
	return IsOneOfStatusCodes(http.StatusOK)(resp)
}
IsStatusOK checks that the response code is a 200.
package test
import (
	"context"
	"fmt"
	"net/http"
	"net/url"
	"strings"
	"time"
	"github.com/knative/pkg/test/logging"
	"github.com/knative/pkg/test/spoof"
)
func Retrying(rc spoof.ResponseChecker, codes ...int) spoof.ResponseChecker {
	return func(resp *spoof.Response) (bool, error) {
		for _, code := range codes {
			if resp.StatusCode == code {
				return false, nil
			}
		}
		return rc(resp)
	}
}
func IsOneOfStatusCodes(codes ...int) spoof.ResponseChecker {
	return func(resp *spoof.Response) (bool, error) {
		for _, code := range codes {
			if resp.StatusCode == code {
				return true, nil
			}
		}
		return true, fmt.Errorf("status = %d, want one of: %v", resp.StatusCode, codes)
	}
}