2019-07-02 22:03:23 +02:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"github.com/photoprism/photoprism/internal/config"
|
2020-01-12 14:00:56 +01:00
|
|
|
"github.com/photoprism/photoprism/pkg/txt"
|
2019-07-02 22:03:23 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2020-01-07 17:36:49 +01:00
|
|
|
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())}
|
2019-07-02 22:03:23 +02:00
|
|
|
)
|