trepa/internal/accounts/domain/errors.go
2025-03-11 21:42:36 +00:00

13 lines
379 B
Go

package domain
import (
"net/http"
"gitea.qpismont.fr/qpismont/trepa/internal/core"
)
var (
ErrAccountNotFound = core.NewHTTPError(http.StatusNotFound, "Account not found", nil)
ErrAccountAlreadyExists = core.NewHTTPError(http.StatusConflict, "Account already exists", nil)
ErrBadPassword = core.NewHTTPError(http.StatusUnauthorized, "Bad password", nil)
)