github.com/hashicorp/vault/sdk@v0.13.0/helper/consts/error.go (about)

     1  // Copyright (c) HashiCorp, Inc.
     2  // SPDX-License-Identifier: MPL-2.0
     3  
     4  package consts
     5  
     6  import "errors"
     7  
     8  var (
     9  	// ErrSealed is returned if an operation is performed on a sealed barrier.
    10  	// No operation is expected to succeed before unsealing
    11  	ErrSealed = errors.New("Vault is sealed")
    12  
    13  	// ErrAPILocked is returned if an operation is performed when the API is
    14  	// locked for the request namespace.
    15  	ErrAPILocked = errors.New("API access to this namespace has been locked by an administrator")
    16  
    17  	// ErrStandby is returned if an operation is performed on a standby Vault.
    18  	// No operation is expected to succeed until active.
    19  	ErrStandby = errors.New("Vault is in standby mode")
    20  
    21  	// ErrPathContainsParentReferences is returned when a path contains parent
    22  	// references.
    23  	ErrPathContainsParentReferences = errors.New("path cannot contain parent references")
    24  
    25  	// ErrInvalidWrappingToken is returned when checking for the validity of
    26  	// a wrapping token that turns out to be invalid.
    27  	ErrInvalidWrappingToken = errors.New("wrapping token is not valid or does not exist")
    28  
    29  	// ErrOverloaded indicates the Vault server is at capacity.
    30  	ErrOverloaded = errors.New("overloaded, try again later")
    31  )