storageerr

package
v0.0.2-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrorNotFound indicates that the requested storage key does not exist.
	ErrorNotFound = statuserr.NotFoundError(errors.New("key not found"))

	// ErrorDistExisted indicates that the destination key already exists when overwrite is disabled.
	ErrorDistExisted = statuserr.BadRequestError(errors.New("destination key existed"))

	// ErrorFileNameInvalid indicates that the provided file name or path is invalid or unsafe.
	ErrorFileNameInvalid = statuserr.BadRequestError(errors.New("file name invalid"))
)

Common storage operation errors with appropriate HTTP status codes.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL