2021-12-18 17:37:44 +00:00
|
|
|
package attribute
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"kumoly.io/kumoly/app/errors"
|
|
|
|
)
|
|
|
|
|
2021-12-18 18:44:34 +00:00
|
|
|
var ErrorAttributeExist = errors.Error{
|
|
|
|
Code: http.StatusBadRequest,
|
|
|
|
ID: "ErrorAttributeExist",
|
|
|
|
Message: "Attribute already exist",
|
|
|
|
}
|
|
|
|
|
2021-12-18 17:37:44 +00:00
|
|
|
var ErrorAttributeNotFound = errors.Error{
|
|
|
|
Code: http.StatusNotFound,
|
|
|
|
ID: "ErrorTokenNotValid",
|
|
|
|
Message: "Attribute not found",
|
|
|
|
}
|
|
|
|
|
|
|
|
var ErrorInitializationFail = errors.Error{
|
|
|
|
Code: http.StatusNotFound,
|
|
|
|
ID: "ErrorInitializationFail",
|
|
|
|
Message: "Database not connected",
|
|
|
|
}
|