errors

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// HTTP Errors
	ErrBadRequest              = errors.New("bad request")
	ErrUnauthorized            = errors.New("unauthorized")
	ErrForbidden               = errors.New("forbidden")
	ErrNotFound                = errors.New("not found")
	ErrConflict                = errors.New("conflict")
	ErrUnprocessableEntity     = errors.New("unprocessable entity")
	ErrInsufficientPermissions = errors.New("insufficient permissions")

	// User Errors
	ErrEmailRequired = errors.New("email is required")

	// Token Errors
	ErrTokenRequired = errors.New("token is required")
)

Functions

func HandleError

func HandleError(err error, reqCtx *models.RequestContext)

Types

This section is empty.

Jump to

Keyboard shortcuts

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