Files
mtusi2026lab2/internal/service/errors.go
T
Vladislav Agapov b90581f613
Application / verify (pull_request) Canceled after 0s
Skeleton contracts / contracts (pull_request) Canceled after 0s
Implement lab 2 with PostgreSQL, Valkey admission and Helm deployment
2026-10-15 17:09:26 +03:00

17 lines
595 B
Go

package service
import "errors"
var (
// ErrInvalid indicates invalid operation input.
ErrInvalid = errors.New("invalid request")
// ErrUnauthorized indicates an unresolved current user.
ErrUnauthorized = errors.New("unknown user identity")
// ErrNotFound hides both absent and inaccessible resources.
ErrNotFound = errors.New("resource not found")
// ErrConflict indicates a duplicate username.
ErrConflict = errors.New("username already exists")
// ErrCapacity indicates exhausted storage capacity without eviction.
ErrCapacity = errors.New("in-memory storage capacity reached")
)