github.com/hellofresh/janus@v0.0.0-20230925145208-ce8de8183c67/pkg/plugin/basic/errors.go (about)

     1  package basic
     2  
     3  import (
     4  	"net/http"
     5  
     6  	"github.com/hellofresh/janus/pkg/errors"
     7  )
     8  
     9  var (
    10  	// ErrNotAuthorized is used when the the access is not permisted
    11  	ErrNotAuthorized = errors.New(http.StatusUnauthorized, "not authorized")
    12  	// ErrUserNotFound is used when an user is not found
    13  	ErrUserNotFound = errors.New(http.StatusNotFound, "user not found")
    14  	// ErrUserExists is used when an user already exists
    15  	ErrUserExists = errors.New(http.StatusNotFound, "user already exists")
    16  	// ErrInvalidAdminRouter is used when an invalid admin router is given
    17  	ErrInvalidAdminRouter = errors.New(http.StatusNotFound, "invalid admin router given")
    18  )