Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for writeErrorResponseString (0.18 sec)

  1. 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)
Back to top