func IsSuccessStatusCode()

in httputil/httputil.go [93:100]


func IsSuccessStatusCode(statusCode int) bool {
	switch statusCode {
	case 200, 201:
		return true
	default:
		return false
	}
}