Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getAPIError (0.04 sec)

  1. cmd/object-handlers_test.go

    	// expected error when the signature check fails.
    	signatureMismatchErr := getAPIError(ErrSignatureDoesNotMatch)
    	// expected error the when the uploadID is invalid.
    	noSuchUploadErr := getAPIError(ErrNoSuchUpload)
    	// expected error the part number marker use in the ListObjectParts request is invalid.
    	invalidPartMarkerErr := getAPIError(ErrInvalidPartNumberMarker)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 163.1K bytes
    - Viewed (0)
  2. cmd/handler-utils.go

    			tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    			if ok {
    				tc.FuncName = "s3.AppendObject"
    				tc.ResponseRecorder.LogErrBody = true
    			}
    
    			writeErrorResponse(r.Context(), w, getAPIError(ErrNotImplemented), r.URL)
    			return
    		}
    
    		tc, ok := r.Context().Value(mcontext.ContextTraceKey).(*mcontext.TraceCtxt)
    		if ok {
    			tc.FuncName = "s3.ValidRequest"
    			tc.ResponseRecorder.LogErrBody = true
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 16.3K bytes
    - Viewed (1)
  3. cmd/test-utils_test.go

    	anonReq.Body = readerOne
    
    	// call the HTTP handler.
    	apiRouter.ServeHTTP(rec, anonReq)
    
    	// expected error response when the unsigned HTTP request is not permitted.
    	accessDenied := getAPIError(ErrAccessDenied).HTTPStatusCode
    	if rec.Code != accessDenied {
    		t.Fatal(failTestStr(anonTestStr, fmt.Sprintf("Object API Nil Test expected to fail with %d, but failed with %d", accessDenied, rec.Code)))
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 77K bytes
    - Viewed (0)
Back to top