Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 329 for StatusCode (0.14 sec)

  1. tests/integration/pilot/multiplecontrolplanes/main_test.go

    				name       string
    				statusCode int
    				from       echo.Instances
    			}{
    				{
    					name:       "workloads in SE configured namespace can reach external service",
    					statusCode: http.StatusOK,
    					from:       apps.NS[1].A,
    				},
    				{
    					name:       "workloads in non-SE configured namespace, but same usergroup can reach external service",
    					statusCode: http.StatusOK,
    					from:       apps.NS[2].A,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 16:52:52 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. internal/s3select/csv/errors.go

    type s3Error struct {
    	code       string
    	message    string
    	statusCode int
    	cause      error
    }
    
    func (err *s3Error) Cause() error {
    	return err.cause
    }
    
    func (err *s3Error) ErrorCode() string {
    	return err.code
    }
    
    func (err *s3Error) ErrorMessage() string {
    	return err.message
    }
    
    func (err *s3Error) HTTPStatusCode() int {
    	return err.statusCode
    }
    
    func (err *s3Error) Error() string {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/util/WebApiUtil.java

        }
    
        public static void setError(final int statusCode, final String message) {
            LaRequestUtil.getOptionalRequest().ifPresent(req -> req.setAttribute(WEB_API_EXCEPTION, new WebApiException(statusCode, message)));
        }
    
        public static void setError(final int statusCode, final Exception e) {
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. pilot/pkg/request/command.go

    	if err != nil {
    		return err
    	}
    	defer resp.Body.Close()
    	respBody, err := io.ReadAll(resp.Body)
    	if err != nil {
    		return err
    	}
    	if resp.StatusCode > 399 && resp.StatusCode != 404 {
    		return fmt.Errorf("received unsuccessful status code %v: %v", resp.StatusCode, string(respBody))
    	}
    	fmt.Println(string(respBody))
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Nov 02 03:58:02 UTC 2021
    - 1.5K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/server/mux/pathrecorder_test.go

    	resp, _ := http.Get(s.URL + "/nonswagger")
    	assert.Equal(t, first, 1)
    	assert.Equal(t, resp.StatusCode, http.StatusOK)
    
    	c.Unregister("/nonswagger")
    	assert.NotContains(t, c.ListedPaths(), "/nonswagger")
    
    	resp, _ = http.Get(s.URL + "/nonswagger")
    	assert.Equal(t, first, 1)
    	assert.Equal(t, resp.StatusCode, http.StatusNotFound)
    
    	c.HandleFunc("/nonswagger", func(http.ResponseWriter, *http.Request) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 26 16:15:13 UTC 2017
    - 4.4K bytes
    - Viewed (0)
  6. 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)
  7. staging/src/k8s.io/apiserver/pkg/util/notfoundhandler/not_found_handler_test.go

    	resp := rw.Result()
    	body, err := io.ReadAll(resp.Body)
    	if err != nil {
    		t.Fatal(err)
    	}
    	bodyStr := strings.TrimSuffix(string(body), "\n")
    
    	if resp.StatusCode != 404 {
    		t.Fatalf("unexpected status code %d, expected 503", resp.StatusCode)
    	}
    	expectedMsg := "404 page not found"
    	if bodyStr != expectedMsg {
    		t.Fatalf("unexpected response: %v, expected: %v", bodyStr, expectedMsg)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 19 11:26:59 UTC 2021
    - 2.5K bytes
    - Viewed (0)
  8. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpResource.groovy

            server.expectPut(getPath(), username, password, getFile())
        }
    
        void expectPut(Integer statusCode = 200, PasswordCredentials credentials = null) {
            server.expectPut(getPath(), getFile(), statusCode, credentials)
        }
    
        void expectPutBroken(Integer statusCode = 500) {
            server.expectPut(getPath(), getFile(), statusCode, null)
        }
    
        abstract TestFile getFile();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  9. 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)
  10. src/main/webapp/WEB-INF/orig/view/error/redirect.jsp

    		redirectPage.append("/error/systemerror/");
    		response.sendRedirect(redirectPage.toString());
    	} else {
    		response.sendError(statusCode);
    	}
    } else if("logOut".equals(type)) {
    	redirectPage.append("/login/?type=logout&code=" + statusCode);
    	response.sendRedirect(redirectPage.toString());
    } else if("badRequest".equals(type)) {
    	redirectPage.append("/error/badrequest/");
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Sun Aug 28 21:37:02 UTC 2016
    - 1.2K bytes
    - Viewed (0)
Back to top