Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 45 for StatusCode (0.32 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. istioctl/pkg/admin/istiodconfig.go

    func (c *ControlzClient) GetScopes() ([]*ScopeInfo, error) {
    	var scopeInfos []*ScopeInfo
    	resp, err := c.httpClient.Get(c.baseURL.String())
    	if err != nil {
    		return nil, err
    	}
    	defer resp.Body.Close()
    	if resp.StatusCode != http.StatusOK {
    		return nil, fmt.Errorf("request not successful %s", resp.Status)
    	}
    
    	err = json.NewDecoder(resp.Body).Decode(&scopeInfos)
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 13 05:23:38 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  7. docs/logging/README.md

      "time": "2024-05-09T07:38:10.449688982Z",
      "event": "",
      "trigger": "incoming",
      "api": {
        "name": "PutObject",
        "bucket": "testbucket",
        "object": "hosts",
        "status": "OK",
        "statusCode": 200,
        "rx": 401,
        "tx": 0,
        "timeToResponse": "13309747ns",
        "timeToResponseInNS": "13309747"
      },
      "remotehost": "127.0.0.1",
      "requestID": "17CDC1F4D7E69123",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 17:15:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. cmd/http-stats.go

    		bh.httpStats[bucket] = hstats
    		return
    	} // else {
    	hstats.currentS3Requests.Dec(api) // decrement this once we have the response recorder.
    
    	hstats.totalS3Requests.Inc(api)
    	code := w.StatusCode
    
    	switch {
    	case code == 0:
    	case code == 499:
    		// 499 is a good error, shall be counted as canceled.
    		hstats.totalS3Canceled.Inc(api)
    	case code >= http.StatusBadRequest:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 06:25:13 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

          } catch (e: IOException) {
            failConnection(e)
          }
        }
      }
    
      @Throws(IOException::class)
      internal fun writeSynReset(
        streamId: Int,
        statusCode: ErrorCode,
      ) {
        writer.rstStream(streamId, statusCode)
      }
    
      internal fun writeWindowUpdateLater(
        streamId: Int,
        unacknowledgedBytesRead: Long,
      ) {
        writerQueue.execute("$connectionName[$streamId] windowUpdate") {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  10. pkg/spiffe/spiffe.go

    			} else if resp == nil {
    				errMsg = fmt.Sprintf("Calling %s failed with nil response", endpoint)
    			} else if resp.StatusCode != http.StatusOK {
    				b := make([]byte, 1024)
    				n, _ := resp.Body.Read(b)
    				errMsg = fmt.Sprintf("Calling %s failed with unexpected status: %v, fetching bundle: %s",
    					endpoint, resp.StatusCode, string(b[:n]))
    			} else {
    				break
    			}
    
    			if startTime.Add(retryTimeout).Before(time.Now()) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.1K bytes
    - Viewed (0)
Back to top