errdefs

package
v0.40.2 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRequest          = errors.New("bad request")
	ErrEmptyRequest        = errors.New("empty request")
	ErrEmptyRequestBody    = errors.New("empty request body")
	ErrImmutableModel      = errors.New("immutable model")
	ErrUnprocessableEntity = errors.New("unprocessable entity")
	ErrNotFound            = errors.New("not found")
	ErrConflict            = errors.New("conflict")
	ErrMissingParameter    = errors.New("missing parameter")
	ErrInvalidParameter    = errors.New("invalid parameter value")
)

Functions

func BadRequest

func BadRequest(message string) error

func Conflict

func Conflict(message string) error

func InvalidParameterValue

func InvalidParameterValue(param, message string) error

func MissingParameter

func MissingParameter(param, message string) error

func NotFound

func NotFound(message string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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