Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ErrorResponse (0.06 sec)

  1. cmd/api-response.go

    		err.HTTPStatusCode = http.StatusInternalServerError
    	}
    
    	// Generate error response.
    	errorResponse := getAPIErrorResponse(ctx, err, reqURL.Path,
    		w.Header().Get(xhttp.AmzRequestID), w.Header().Get(xhttp.AmzRequestHostID))
    	encodedErrorResponse := encodeResponse(errorResponse)
    	writeResponse(w, err.HTTPStatusCode, encodedErrorResponse, mimeXML)
    }
    
    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

    				DeploymentID: globalDeploymentID(),
    			},
    		},
    	}
    
    	errResp := func(err error) {
    		errorResponse := getAPIErrorResponse(ctx, toAdminAPIErr(ctx, err), r.URL.String(),
    			w.Header().Get(xhttp.AmzRequestID), w.Header().Get(xhttp.AmzRequestHostID))
    		encodedErrorResponse := encodeResponse(errorResponse)
    		healthInfo.Error = string(encodedErrorResponse)
    		adminLogIf(ctx, enc.Encode(healthInfo))
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  3. cmd/admin-handlers-users_test.go

    	c.Helper()
    	_, err := client.PutObject(ctx, bucket, "some-object", bytes.NewBuffer([]byte("stuff")), 5, minio.PutObjectOptions{})
    	if e, ok := err.(minio.ErrorResponse); ok {
    		if e.Code == "AccessDenied" {
    			return
    		}
    	}
    	c.Fatalf("upload did not get an AccessDenied error - got %#v instead", err)
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  4. cmd/api-errors.go

    			}
    		case crypto.Error:
    			apiErr = APIError{
    				Code:           "XMinioEncryptionError",
    				Description:    e.Error(),
    				HTTPStatusCode: http.StatusBadRequest,
    			}
    		case minio.ErrorResponse:
    			apiErr = APIError{
    				Code:           e.Code,
    				Description:    e.Message,
    				HTTPStatusCode: e.StatusCode,
    			}
    			if strings.Contains(e.Message, "KMS is not configured") {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
Back to top