f8a45b14d9
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
13 lines
427 B
Go
13 lines
427 B
Go
package api
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/photoprism/photoprism/internal/config"
|
|
"github.com/photoprism/photoprism/pkg/txt"
|
|
)
|
|
|
|
var (
|
|
ErrReadOnly = gin.H{"code": 403, "error": txt.UcFirst(config.ErrReadOnly.Error())}
|
|
ErrUnauthorized = gin.H{"code": 401, "error": txt.UcFirst(config.ErrUnauthorized.Error())}
|
|
ErrUploadNSFW = gin.H{"code": 403, "error": txt.UcFirst(config.ErrUploadNSFW.Error())}
|
|
)
|