- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 609 for statusCode (0.07 sec)
-
cmd/api-response.go
} func writeResponse(w http.ResponseWriter, statusCode int, response []byte, mType mimeType) { // Don't write a response if one has already been written. // Fixes https://github.com/minio/minio/issues/21633 if headersAlreadyWritten(w) { return } if statusCode == 0 { statusCode = 200 } // Similar check to http.checkWriteHeaderCode if statusCode < 100 || statusCode > 999 {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 24 04:05:19 UTC 2025 - 35K bytes - Viewed (0) -
docs/de/docs/tutorial/handling-errors.md
* usw. In diesen Fällen würden Sie normalerweise einen **HTTP-Statuscode** im Bereich **400** (von 400 bis 499) zurückgeben. Dies ist vergleichbar mit den HTTP-Statuscodes im Bereich 200 (von 200 bis 299). Diese „200“-Statuscodes bedeuten, dass der <abbr title="Request – Anfrage: Daten, die der Client zum Server sendet">Request</abbr> in irgendeiner Weise erfolgreich war.
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 10.4K bytes - Viewed (0) -
tensorflow/c/c_api_macros_internal.h
Registered: Tue Dec 30 12:39:10 UTC 2025 - Last Modified: Mon Mar 13 17:40:56 UTC 2023 - 2.5K bytes - Viewed (0) -
cmd/api-response_test.go
t.Fatalf("Write unexpectedly failed: %v", err) } // Check that WriteHeader and Write were called on the underlying response writer resp := rw.Result() if resp.StatusCode != 123 { t.Fatalf("unexpected status: %v", resp.StatusCode) } body, err := io.ReadAll(resp.Body) if err != nil { t.Fatalf("reading response body failed: %v", err) } if string(body) != "hello" {
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Oct 24 04:05:19 UTC 2025 - 5.8K bytes - Viewed (0) -
cmd/admin-handler-utils.go
return nil, auth.Credentials{} } // AdminError - is a generic error for all admin APIs. type AdminError struct { Code string Message string StatusCode int } func (ae AdminError) Error() string { return ae.Message } func toAdminAPIErr(ctx context.Context, err error) APIError { if err == nil { return noError } var apiErr APIErrorRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Wed Jul 03 07:17:20 UTC 2024 - 8.4K bytes - Viewed (0) -
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 Dec 28 19:28:13 UTC 2025 - Last Modified: Sun Sep 28 20:59:21 UTC 2025 - 14.7K bytes - Viewed (0) -
internal/config/subnet/subnet.go
if err != nil { return "", err } respStr := string(respBytes) if resp.StatusCode == http.StatusOK { return respStr, nil } return respStr, fmt.Errorf("SUBNET request failed with code %d and error: %s", resp.StatusCode, respStr) } // Post submit 'payload' to specified URL func (c Config) Post(reqURL string, payload any) (string, error) { if !c.Registered() {Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 2.9K bytes - Viewed (0) -
cmd/crossdomain-xml-handler_test.go
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Sat Jul 08 14:31:42 UTC 2023 - 1.3K bytes - Viewed (0) -
internal/config/dns/operator_dns.go
return newError(bucket, derr) } return err } defer xhttp.DrainBody(resp.Body) if resp.StatusCode != http.StatusOK { var errorStringBuilder strings.Builder io.Copy(&errorStringBuilder, io.LimitReader(resp.Body, resp.ContentLength)) errorString := errorStringBuilder.String() if resp.StatusCode == http.StatusConflict { return ErrBucketConflict(Error{bucket, errors.New(errorString)}) }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Mon Nov 11 14:51:43 UTC 2024 - 6.6K bytes - Viewed (0) -
cmd/tier.go
StatusCode: http.StatusBadRequest, } errTierBackendNotEmpty = AdminError{ Code: "XMinioAdminTierBackendNotEmpty", Message: "Specified remote backend is not empty", StatusCode: http.StatusBadRequest, } errTierInvalidConfig = AdminError{ Code: "XMinioAdminTierInvalidConfig", Message: "Unable to setup remote tier, check tier configuration", StatusCode: http.StatusBadRequest, }Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 15.6K bytes - Viewed (0)