@@ -0,0 +1,13 @@
|
||||
// Package apperror defines safe application errors shared across module boundaries.
|
||||
package apperror
|
||||
|
||||
import "errors"
|
||||
|
||||
var (
|
||||
ErrInvalidInput = errors.New("invalid input")
|
||||
ErrUnauthenticated = errors.New("authentication required")
|
||||
ErrForbidden = errors.New("permission denied")
|
||||
ErrConflict = errors.New("already exists")
|
||||
ErrNotFound = errors.New("not found")
|
||||
ErrUnavailable = errors.New("service unavailable")
|
||||
)
|
||||
Reference in New Issue
Block a user