Files
sonr/pkg/gateway/internal/database/errors.go
T

17 lines
508 B
Go
Raw Normal View History

2024-12-05 20:36:58 -05:00
package database
import (
"net/http"
"github.com/labstack/echo/v4"
)
var (
ErrInvalidCredentials = echo.NewHTTPError(http.StatusUnauthorized, "Invalid credentials")
ErrInvalidSubject = echo.NewHTTPError(http.StatusBadRequest, "Invalid subject")
ErrInvalidUser = echo.NewHTTPError(http.StatusBadRequest, "Invalid user")
ErrUserAlreadyExists = echo.NewHTTPError(http.StatusConflict, "User already exists")
ErrUserNotFound = echo.NewHTTPError(http.StatusNotFound, "User not found")
)