Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for StatusCode (0.2 sec)

  1. internal/s3select/unused-errors.go

    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errColumnTooLong(err error) *s3Error {
    	return &s3Error{
    		code:       "ColumnTooLong",
    		message:    "The length of a column in the result is greater than maxCharsPerColumn of 1 MB.",
    		statusCode: 400,
    		cause:      err,
    	}
    }
    
    func errOverMaxColumn(err error) *s3Error {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Feb 20 08:16:35 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers.go

    	if err != nil {
    		// if original statusCode was not successful we need to return the original error
    		// we cannot hide it behind negotiation problems
    		if statusCode < http.StatusOK || statusCode >= http.StatusBadRequest {
    			WriteRawJSON(int(statusCode), object, w)
    			return
    		}
    		status := ErrorToAPIStatus(err)
    		WriteRawJSON(int(status.Code), status, w)
    		return
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 07 18:21:43 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers_test.go

    				buf:  tt.out,
    				errs: tt.outErrs,
    			}
    			if tt.statusCode == 0 {
    				tt.statusCode = http.StatusOK
    			}
    			recorder := httptest.NewRecorder()
    			SerializeObject(tt.mediaType, encoder, recorder, tt.req, tt.statusCode, tt.object)
    			result := recorder.Result()
    			if result.StatusCode != tt.wantCode {
    				t.Fatalf("unexpected code: %v", result.StatusCode)
    			}
    			if !reflect.DeepEqual(result.Header, tt.wantHeaders) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 15.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook_v1beta1_test.go

    		// regular errors return errors but do not retry
    		{name: "404 doesnt retry", attr: aliceAttr, allow: false, statusCode: 404, expectedErr: true, expectedAuthorized: false, expectedCalls: 1},
    		{name: "403 doesnt retry", attr: aliceAttr, allow: false, statusCode: 403, expectedErr: true, expectedAuthorized: false, expectedCalls: 1},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 22:41:27 UTC 2024
    - 19.9K bytes
    - Viewed (0)
  5. pilot/cmd/pilot-agent/status/server_test.go

    		resp, err := client.Do(req)
    		if err != nil {
    			t.Fatal("request failed: ", err)
    		}
    		defer resp.Body.Close()
    		if resp.StatusCode != tc.statusCode {
    			t.Errorf("[%v] unexpected status code, want = %v, got = %v", tc.probePath, tc.statusCode, resp.StatusCode)
    		}
    	}
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) { testFn(t, tc) })
    	}
    	// Next we check ever
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  6. staging/src/k8s.io/cli-runtime/pkg/resource/helper_test.go

    			Err:     true,
    		},
    		{
    			name: "test2",
    			Resp: &http.Response{
    				StatusCode: http.StatusNotFound,
    				Header:     header(),
    				Body:       objBody(&metav1.Status{Status: metav1.StatusFailure}),
    			},
    			Err: true,
    		},
    		{
    			name: "test3pkg/kubectl/genericclioptions/resource/helper_test.go",
    			Resp: &http.Response{
    				StatusCode: http.StatusOK,
    				Header:     header(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 09:47:52 UTC 2023
    - 25.2K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook.go

    		var tokenReviewErr error
    		var statusCode int
    
    		start := time.Now()
    		result, statusCode, tokenReviewErr = w.tokenReview.Create(ctx, r, metav1.CreateOptions{})
    		latency := time.Since(start)
    
    		if statusCode != 0 {
    			w.metrics.RecordRequestTotal(ctx, strconv.Itoa(statusCode))
    			w.metrics.RecordRequestLatency(ctx, strconv.Itoa(statusCode), latency.Seconds())
    			return tokenReviewErr
    		}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 18 00:47:42 UTC 2022
    - 11.5K bytes
    - Viewed (0)
  8. tests/integration/security/egress_gateway_origination_test.go

    			testCases := []struct {
    				name            string
    				statusCode      int
    				credentialToUse string
    				useGateway      bool
    			}{
    				// Use CA certificate stored as k8s secret with the same issuing CA as server's CA.
    				// This root certificate can validate the server cert presented by the echoboot server instance.
    				{
    					name:            "simple",
    					statusCode:      http.StatusOK,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/filters/timeout_test.go

    	// No timeouts
    	ctx = context.Background()
    	sendResponse <- resp
    	res, err := http.Get(ts.URL)
    	if err != nil {
    		t.Fatal(err)
    	}
    	if res.StatusCode != http.StatusOK {
    		t.Errorf("got res.StatusCode %d; expected %d", res.StatusCode, http.StatusOK)
    	}
    	body, _ := ioutil.ReadAll(res.Body)
    	if string(body) != resp {
    		t.Errorf("got body %q; expected %q", string(body), resp)
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 26 16:28:45 UTC 2024
    - 18.4K bytes
    - Viewed (0)
  10. src/net/http/response_test.go

    var respTests = []respTest{
    	// Unchunked response without Content-Length.
    	{
    		"HTTP/1.0 200 OK\r\n" +
    			"Connection: close\r\n" +
    			"\r\n" +
    			"Body here\n",
    
    		Response{
    			Status:     "200 OK",
    			StatusCode: 200,
    			Proto:      "HTTP/1.0",
    			ProtoMajor: 1,
    			ProtoMinor: 0,
    			Request:    dummyReq("GET"),
    			Header: Header{
    				"Connection": {"close"}, // TODO(rsc): Delete?
    			},
    			Close:         true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 19:01:29 UTC 2024
    - 23.6K bytes
    - Viewed (0)
Back to top