-
Notifications
You must be signed in to change notification settings - Fork 74
/
api_error.go
35 lines (25 loc) · 1.44 KB
/
api_error.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
package atlas
const (
// Error codes that Atlas may return that we are concerned about
GroupExistsAPIErrorCode = "GROUP_ALREADY_EXISTS"
// The error that Atlas API returns if the GET request is sent to read the project that either doesn't exist
// or the user doesn't have permissions for
NotInGroup = "NOT_IN_GROUP"
// Error indicates that the project is being removed while it still has clusters
CannotCloseGroupActiveAtlasDeployment = "CANNOT_CLOSE_GROUP_ACTIVE_ATLAS_CLUSTERS"
// Error indicates that the database user doesn't exist
UsernameNotFound = "USERNAME_NOT_FOUND"
// Error indicates that the cluster doesn't exist
ClusterNotFound = "CLUSTER_NOT_FOUND"
// ServerlessClusterNotFound indicates that the serverless cluster doesn't exist
ServerlessInstanceNotFound = "SERVERLESS_INSTANCE_NOT_FOUND"
// ServerlessClusterFromClusterAPI indicates that we are trying to access
// a serverless instance from the cluster API, which is not allowed
ServerlessInstanceFromClusterAPI = "CANNOT_USE_SERVERLESS_INSTANCE_IN_CLUSTER_API"
// Resource not found
ResourceNotFound = "RESOURCE_NOT_FOUND"
// Instance for the passed {groupId, tenantName} pair does not exist
DataFederationTenantNotFound = "DATA_FEDERATION_TENANT_NOT_FOUND_FOR_NAME"
// Backup Compliance Policy rejected, as there are existing backup policies which do not meet the requirements
BackupComplianceNotMet = "BACKUP_POLICIES_NOT_MEETING_BACKUP_COMPLIANCE_POLICY_REQUIREMENTS"
)