- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for writeErrorResponseString (0.13 sec)
-
cmd/handler-utils.go
switch { case strings.HasPrefix(r.URL.Path, peerRESTPrefix): writeErrorResponseString(r.Context(), w, APIError{ Code: "XMinioPeerVersionMismatch", Description: desc, HTTPStatusCode: http.StatusUpgradeRequired, }, r.URL) case strings.HasPrefix(r.URL.Path, storageRESTPrefix): writeErrorResponseString(r.Context(), w, APIError{ Code: "XMinioStorageVersionMismatch",
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 15.5K bytes - Viewed (0) -
cmd/api-response.go
w.Header().Set(xMinIOErrCodeHeader, err.Code) w.Header().Set(xMinIOErrDescHeader, "\""+err.Description+"\"") writeResponse(w, err.HTTPStatusCode, nil, mimeNone) } func writeErrorResponseString(ctx context.Context, w http.ResponseWriter, err APIError, reqURL *url.URL) { // Generate string error response. writeResponse(w, err.HTTPStatusCode, []byte(err.Description), mimeNone) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 31 19:27:06 UTC 2024 - 33.4K bytes - Viewed (0)