Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for encodeResponseJSON (0.13 sec)

  1. cmd/api-response.go

    	// Generate error response.
    	errorResponse := getAPIErrorResponse(ctx, err, reqURL.Path, w.Header().Get(xhttp.AmzRequestID), w.Header().Get(xhttp.AmzRequestHostID))
    	encodedErrorResponse := encodeResponseJSON(errorResponse)
    	writeResponse(w, err.HTTPStatusCode, encodedErrorResponse, mimeJSON)
    }
    
    // writeCustomErrorResponseJSON - similar to writeErrorResponseJSON,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  2. cmd/admin-handlers.go

    					}
    				default:
    					var errorRespJSON []byte
    					if hr.errBody == "" {
    						errorRespJSON = encodeResponseJSON(getAPIErrorResponse(ctx, hr.apiErr,
    							r.URL.Path, w.Header().Get(xhttp.AmzRequestID),
    							w.Header().Get(xhttp.AmzRequestHostID)))
    					} else {
    						errorRespJSON = encodeResponseJSON(APIErrorResponse{
    							Code:      hr.apiErr.Code,
    							Message:   hr.errBody,
    							Resource:  r.URL.Path,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
Back to top