mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-08 20:49:45 -06:00
23 lines
1.1 KiB
Go
23 lines
1.1 KiB
Go
package core
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/shroff/phylum/server/internal/api/errors"
|
|
)
|
|
|
|
var ErrInsufficientPermissions = errors.New(http.StatusUnauthorized, "insufficient_permissions", "")
|
|
|
|
var ErrUserNotFound = errors.New(http.StatusNotFound, "user_not_found", "")
|
|
|
|
var (
|
|
ErrResourceNotFound = errors.New(http.StatusNotFound, "resource_not_found", "")
|
|
ErrResourceNotCollection = errors.New(http.StatusMethodNotAllowed, "cannot add member to non-collection resource", "")
|
|
ErrResourceCollection = errors.New(http.StatusMethodNotAllowed, "cannot write to collection resource", "")
|
|
ErrResourceIDConflict = errors.New(http.StatusConflict, "resource_id_conflict", "")
|
|
ErrResourceNameInvalid = errors.New(http.StatusBadRequest, "resource_name_invalid", "")
|
|
ErrResourceNameConflict = errors.New(http.StatusPreconditionFailed, "resource_name_conflict", "")
|
|
ErrResourceMoveTargetSubdirectory = errors.New(http.StatusConflict, "move target subdirectory", "")
|
|
ErrParentNotFound = errors.New(http.StatusConflict, "parent_not_found", "")
|
|
)
|