mirror of
https://github.com/Sosokker/go-chi-oapi-codegen-todolist.git
synced 2025-12-19 05:54:07 +01:00
14 lines
459 B
Go
14 lines
459 B
Go
package domain
|
|
|
|
import "errors"
|
|
|
|
var (
|
|
ErrNotFound = errors.New("resource not found")
|
|
ErrForbidden = errors.New("user does not have permission")
|
|
ErrBadRequest = errors.New("invalid input")
|
|
ErrConflict = errors.New("resource conflict (e.g., duplicate)")
|
|
ErrUnauthorized = errors.New("authentication required or failed")
|
|
ErrInternalServer = errors.New("internal server error")
|
|
ErrValidation = errors.New("validation failed")
|
|
)
|