trepa/internal/accounts/errors.go
2025-02-20 12:09:38 +00:00

13 lines
381 B
Go

package accounts
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)
)