Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for MethodNotAllowed (0.09 sec)

  1. cmd/object-api-errors.go

    func isErrPreconditionFailed(err error) bool {
    	_, ok := err.(PreConditionFailed)
    	return ok
    }
    
    // isErrMethodNotAllowed - Check if error type is MethodNotAllowed.
    func isErrMethodNotAllowed(err error) bool {
    	var methodNotAllowed MethodNotAllowed
    	return errors.As(err, &methodNotAllowed)
    }
    
    func isErrInvalidRange(err error) bool {
    	if errors.Is(err, errInvalidRange) {
    		return true
    	}
    	_, ok := err.(InvalidRange)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 09 02:05:14 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  2. cmd/bucket-object-lock.go

    func enforceRetentionBypassForDelete(ctx context.Context, r *http.Request, bucket string, object ObjectToDelete, oi ObjectInfo, gerr error) error {
    	if gerr != nil { // error from GetObjectInfo
    		if _, ok := gerr.(MethodNotAllowed); ok {
    			// This happens usually for a delete marker
    			if oi.DeleteMarker || !oi.VersionPurgeStatus.Empty() {
    				// Delete marker should be present and valid.
    				return nil
    			}
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  3. cmd/api-router.go

    	// If none of the routes match add default error handler routes
    	apiRouter.NotFoundHandler = collectAPIStats("notfound", httpTraceAll(errorResponseHandler))
    	apiRouter.MethodNotAllowedHandler = collectAPIStats("methodnotallowed", httpTraceAll(methodNotAllowedHandler("S3")))
    }
    
    // corsHandler handler for CORS (Cross Origin Resource Sharing)
    func corsHandler(handler http.Handler) http.Handler {
    	commonS3Headers := []string{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Aug 13 15:25:16 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top