mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
17 lines
508 B
Go
17 lines
508 B
Go
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")
|
||
|
|
)
|