mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
14 lines
416 B
Go
14 lines
416 B
Go
package constants
|
|
|
|
import (
|
|
"crawlab/errors"
|
|
"net/http"
|
|
)
|
|
|
|
var (
|
|
ErrorMongoError = errors.NewSystemOPError(1001, "system error:[mongo]%s", http.StatusInternalServerError)
|
|
//users
|
|
ErrorUserNotFound = errors.NewBusinessError(10001, "user not found.", http.StatusUnauthorized)
|
|
ErrorUsernameOrPasswordInvalid = errors.NewBusinessError(11001, "username or password invalid", http.StatusUnauthorized)
|
|
)
|