github.com/cozy/cozy-stack@v0.0.0-20240603063001-31110fa4cae1/pkg/webdav/errors.go (about)

     1  package webdav
     2  
     3  import "errors"
     4  
     5  var (
     6  	// ErrInvalidAuth is used when an authentication error occurs (invalid
     7  	// credentials).
     8  	ErrInvalidAuth = errors.New("invalid authentication")
     9  	// ErrAlreadyExist is used when trying to create a directory that already
    10  	// exists.
    11  	ErrAlreadyExist = errors.New("it already exists")
    12  	// ErrParentNotFound is used when trying to create a directory and the
    13  	// parent directory does not exist.
    14  	ErrParentNotFound = errors.New("parent directory does not exist")
    15  	// ErrNotFound is used when the given file/directory has not been found.
    16  	ErrNotFound = errors.New("file/directory not found")
    17  	// ErrInternalServerError is used when something unexpected happens.
    18  	ErrInternalServerError = errors.New("internal server error")
    19  )