Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 78 for StatusCode (0.17 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_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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/net/http/response.go

    	resp.Status = strings.TrimLeft(status, " ")
    
    	statusCode, _, _ := strings.Cut(resp.Status, " ")
    	if len(statusCode) != 3 {
    		return nil, badStringError("malformed HTTP status code", statusCode)
    	}
    	resp.StatusCode, err = strconv.Atoi(statusCode)
    	if err != nil || resp.StatusCode < 0 {
    		return nil, badStringError("malformed HTTP status code", statusCode)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  9. cmd/update.go

    			StatusCode: http.StatusInternalServerError,
    		}
    	}
    	defer xhttp.DrainBody(resp.Body)
    
    	if resp.StatusCode != http.StatusOK {
    		return content, AdminError{
    			Code:       AdminUpdateUnexpectedFailure,
    			Message:    fmt.Sprintf("Error downloading URL %s. Response: %v", u, resp.Status),
    			StatusCode: resp.StatusCode,
    		}
    	}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/plugin/pkg/authorizer/webhook/webhook.go

    	var statusCode int
    	result := &authorizationv1.SubjectAccessReview{}
    
    	restResult := t.client.Post().Body(subjectAccessReview).Do(ctx)
    
    	restResult.StatusCode(&statusCode)
    	err := restResult.Into(result)
    
    	return result, statusCode, err
    }
    
    // subjectAccessReviewV1beta1ClientGW used by the generic webhook, doesn't specify GVR.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:01:15 UTC 2024
    - 18.4K bytes
    - Viewed (0)
Back to top