Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 75 for StatusCode (0.39 sec)

  1. cmd/kubeadm/app/util/apiclient/wait.go

    						return false, nil
    					}
    
    					defer func() {
    						_ = resp.Body.Close()
    					}()
    					if resp.StatusCode != http.StatusOK {
    						lastError = errors.Errorf("%s /healthz check failed with status: %d", comp.name, resp.StatusCode)
    						return false, nil
    					}
    
    					return true, nil
    				})
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Jun 01 07:10:31 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/mlir_graph_optimization_pass_test.cc

              flib_.get(), &control_ret_node_names_, &control_rets_updated_),
          Status(absl::StatusCode::kAborted, "aborted"));
      verifyGraph(original_graph_def);
      verifyCounters();
    }
    
    TEST_F(MlirGraphOptimizationPassTest, OptimizationPassFailsDisabledFallback) {
      Init(Status(absl::StatusCode::kAborted, "aborted"),
           {MlirOptimizationPassState::Disabled,
            MlirOptimizationPassState::FallbackEnabled});
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 08:25:30 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  3. internal/rest/client.go

    	if err != nil {
    		return
    	}
    
    	// Only display response header.
    	var respTrace []byte
    
    	// For errors we make sure to dump response body as well.
    	if resp.StatusCode != http.StatusOK &&
    		resp.StatusCode != http.StatusPartialContent &&
    		resp.StatusCode != http.StatusNoContent {
    		respTrace, err = httputil.DumpResponse(resp, true)
    		if err != nil {
    			return
    		}
    	} else {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  4. tests/integration/telemetry/policy/helper_test.go

    							if err != nil && tc.Expected.StatusCode > 0 {
    								return fmt.Errorf("request failed: %v", err)
    							}
    							codeStr := strconv.Itoa(tc.Expected.StatusCode)
    							for i, r := range result.Responses {
    								if codeStr != r.Code {
    									return fmt.Errorf("response[%d] received status code %s, expected %d", i, r.Code, tc.Expected.StatusCode)
    								}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/config_test.go

    		resp, err := http.Get(server.URL + "/healthz?exclude=wrapping-health&exclude=delegate-health")
    		if err != nil {
    			t.Fatal(err)
    		}
    		data, _ := io.ReadAll(resp.Body)
    		if http.StatusOK != resp.StatusCode {
    			t.Logf("got %d", resp.StatusCode)
    			t.Log(string(data))
    			return false, nil
    		}
    		return true, nil
    	}); err != nil {
    		t.Fatal(err)
    	}
    	checkPath(server.URL+"/healthz", http.StatusInternalServerError, `[+]ping ok
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/ErrorHandlingModuleComponentRepositoryTest.groovy

        }
    
        private static HttpErrorStatusCodeException status(int statusCode) {
            new HttpErrorStatusCodeException("GET", "DUMMY", statusCode, "test") {
                @Override
                String toString() {
                    "status $statusCode"
                }
            }
        }
    
        @Unroll("can list module versions (max retries = #maxRetries, exception=#exception)")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 00:21:07 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. cmd/api-response.go

    	return deleteResp
    }
    
    func writeResponse(w http.ResponseWriter, statusCode int, response []byte, mType mimeType) {
    	if statusCode == 0 {
    		statusCode = 200
    	}
    	// Similar check to http.checkWriteHeaderCode
    	if statusCode < 100 || statusCode > 999 {
    		bugLogIf(context.Background(), fmt.Errorf("invalid WriteHeader code %v", statusCode))
    		statusCode = http.StatusInternalServerError
    	}
    	setCommonHeaders(w)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:31:51 UTC 2024
    - 33.5K bytes
    - Viewed (0)
  8. cmd/tier.go

    		Code:       "XMinioAdminTierMissingCredentials",
    		Message:    "Specified remote credentials are empty",
    		StatusCode: http.StatusForbidden,
    	}
    
    	errTierBackendInUse = AdminError{
    		Code:       "XMinioAdminTierBackendInUse",
    		Message:    "Specified remote tier is already in use",
    		StatusCode: http.StatusConflict,
    	}
    
    	errTierTypeUnsupported = AdminError{
    		Code:       "XMinioAdminTierTypeUnsupported",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 08:44:07 UTC 2024
    - 15.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/genericapiserver_graceful_termination_test.go

    	if resultGot.err != nil {
    		return fmt.Errorf("Expected no error, but got: %v", resultGot.err)
    	}
    	if resultGot.response.StatusCode != statusCodeExpected {
    		return fmt.Errorf("Expected Status Code: %d, but got: %d", statusCodeExpected, resultGot.response.StatusCode)
    	}
    	return nil
    }
    
    func requestMustFailWithRetryHeader(resultGot result, statusCodedExpected int) error {
    	if resultGot.err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 29 18:59:21 UTC 2024
    - 38.3K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/util/proxy/streamtunnel.go

    func (w *tunnelingResponseWriter) WriteHeader(statusCode int) {
    	w.mu.Lock()
    	defer w.mu.Unlock()
    	if w.written {
    		klog.Errorf("WriteHeader called after write")
    		return
    	}
    	if w.hijacked {
    		klog.Errorf("WriteHeader called after hijack")
    		return
    	}
    	w.written = true
    
    	if statusCode == http.StatusSwitchingProtocols {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 14.7K bytes
    - Viewed (0)
Back to top