1package azblob 2 3// https://docs.microsoft.com/en-us/rest/api/storageservices/blob-service-error-codes 4 5// ServiceCode values indicate a service failure. 6const ( 7 // ServiceCodeAppendPositionConditionNotMet means the append position condition specified was not met. 8 ServiceCodeAppendPositionConditionNotMet ServiceCodeType = "AppendPositionConditionNotMet" 9 10 // ServiceCodeBlobAlreadyExists means the specified blob already exists. 11 ServiceCodeBlobAlreadyExists ServiceCodeType = "BlobAlreadyExists" 12 13 // ServiceCodeBlobNotFound means the specified blob does not exist. 14 ServiceCodeBlobNotFound ServiceCodeType = "BlobNotFound" 15 16 // ServiceCodeBlobOverwritten means the blob has been recreated since the previous snapshot was taken. 17 ServiceCodeBlobOverwritten ServiceCodeType = "BlobOverwritten" 18 19 // ServiceCodeBlobTierInadequateForContentLength means the specified blob tier size limit cannot be less than content length. 20 ServiceCodeBlobTierInadequateForContentLength ServiceCodeType = "BlobTierInadequateForContentLength" 21 22 // ServiceCodeBlockCountExceedsLimit means the committed block count cannot exceed the maximum limit of 50,000 blocks 23 // or that the uncommitted block count cannot exceed the maximum limit of 100,000 blocks. 24 ServiceCodeBlockCountExceedsLimit ServiceCodeType = "BlockCountExceedsLimit" 25 26 // ServiceCodeBlockListTooLong means the block list may not contain more than 50,000 blocks. 27 ServiceCodeBlockListTooLong ServiceCodeType = "BlockListTooLong" 28 29 // ServiceCodeCannotChangeToLowerTier means that a higher blob tier has already been explicitly set. 30 ServiceCodeCannotChangeToLowerTier ServiceCodeType = "CannotChangeToLowerTier" 31 32 // ServiceCodeCannotVerifyCopySource means that the service could not verify the copy source within the specified time. 33 // Examine the HTTP status code and message for more information about the failure. 34 ServiceCodeCannotVerifyCopySource ServiceCodeType = "CannotVerifyCopySource" 35 36 // ServiceCodeContainerAlreadyExists means the specified container already exists. 37 ServiceCodeContainerAlreadyExists ServiceCodeType = "ContainerAlreadyExists" 38 39 // ServiceCodeContainerBeingDeleted means the specified container is being deleted. 40 ServiceCodeContainerBeingDeleted ServiceCodeType = "ContainerBeingDeleted" 41 42 // ServiceCodeContainerDisabled means the specified container has been disabled by the administrator. 43 ServiceCodeContainerDisabled ServiceCodeType = "ContainerDisabled" 44 45 // ServiceCodeContainerNotFound means the specified container does not exist. 46 ServiceCodeContainerNotFound ServiceCodeType = "ContainerNotFound" 47 48 // ServiceCodeContentLengthLargerThanTierLimit means the blob's content length cannot exceed its tier limit. 49 ServiceCodeContentLengthLargerThanTierLimit ServiceCodeType = "ContentLengthLargerThanTierLimit" 50 51 // ServiceCodeCopyAcrossAccountsNotSupported means the copy source account and destination account must be the same. 52 ServiceCodeCopyAcrossAccountsNotSupported ServiceCodeType = "CopyAcrossAccountsNotSupported" 53 54 // ServiceCodeCopyIDMismatch means the specified copy ID did not match the copy ID for the pending copy operation. 55 ServiceCodeCopyIDMismatch ServiceCodeType = "CopyIdMismatch" 56 57 // ServiceCodeFeatureVersionMismatch means the type of blob in the container is unrecognized by this version or 58 // that the operation for AppendBlob requires at least version 2015-02-21. 59 ServiceCodeFeatureVersionMismatch ServiceCodeType = "FeatureVersionMismatch" 60 61 // ServiceCodeIncrementalCopyBlobMismatch means the specified source blob is different than the copy source of the existing incremental copy blob. 62 ServiceCodeIncrementalCopyBlobMismatch ServiceCodeType = "IncrementalCopyBlobMismatch" 63 64 // ServiceCodeFeatureEncryptionMismatch means the given customer specified encryption does not match the encryption used to encrypt the blob. 65 ServiceCodeFeatureEncryptionMismatch ServiceCodeType = "BlobCustomerSpecifiedEncryptionMismatch" 66 67 // ServiceCodeIncrementalCopyOfEarlierVersionSnapshotNotAllowed means the specified snapshot is earlier than the last snapshot copied into the incremental copy blob. 68 ServiceCodeIncrementalCopyOfEarlierVersionSnapshotNotAllowed ServiceCodeType = "IncrementalCopyOfEarlierVersionSnapshotNotAllowed" 69 70 // ServiceCodeIncrementalCopySourceMustBeSnapshot means the source for incremental copy request must be a snapshot. 71 ServiceCodeIncrementalCopySourceMustBeSnapshot ServiceCodeType = "IncrementalCopySourceMustBeSnapshot" 72 73 // ServiceCodeInfiniteLeaseDurationRequired means the lease ID matched, but the specified lease must be an infinite-duration lease. 74 ServiceCodeInfiniteLeaseDurationRequired ServiceCodeType = "InfiniteLeaseDurationRequired" 75 76 // ServiceCodeInvalidBlobOrBlock means the specified blob or block content is invalid. 77 ServiceCodeInvalidBlobOrBlock ServiceCodeType = "InvalidBlobOrBlock" 78 79 // ServiceCodeInvalidBlobType means the blob type is invalid for this operation. 80 ServiceCodeInvalidBlobType ServiceCodeType = "InvalidBlobType" 81 82 // ServiceCodeInvalidBlockID means the specified block ID is invalid. The block ID must be Base64-encoded. 83 ServiceCodeInvalidBlockID ServiceCodeType = "InvalidBlockId" 84 85 // ServiceCodeInvalidBlockList means the specified block list is invalid. 86 ServiceCodeInvalidBlockList ServiceCodeType = "InvalidBlockList" 87 88 // ServiceCodeInvalidOperation means an invalid operation against a blob snapshot. 89 ServiceCodeInvalidOperation ServiceCodeType = "InvalidOperation" 90 91 // ServiceCodeInvalidPageRange means the page range specified is invalid. 92 ServiceCodeInvalidPageRange ServiceCodeType = "InvalidPageRange" 93 94 // ServiceCodeInvalidSourceBlobType means the copy source blob type is invalid for this operation. 95 ServiceCodeInvalidSourceBlobType ServiceCodeType = "InvalidSourceBlobType" 96 97 // ServiceCodeInvalidSourceBlobURL means the source URL for incremental copy request must be valid Azure Storage blob URL. 98 ServiceCodeInvalidSourceBlobURL ServiceCodeType = "InvalidSourceBlobUrl" 99 100 // ServiceCodeInvalidVersionForPageBlobOperation means that all operations on page blobs require at least version 2009-09-19. 101 ServiceCodeInvalidVersionForPageBlobOperation ServiceCodeType = "InvalidVersionForPageBlobOperation" 102 103 // ServiceCodeLeaseAlreadyPresent means there is already a lease present. 104 ServiceCodeLeaseAlreadyPresent ServiceCodeType = "LeaseAlreadyPresent" 105 106 // ServiceCodeLeaseAlreadyBroken means the lease has already been broken and cannot be broken again. 107 ServiceCodeLeaseAlreadyBroken ServiceCodeType = "LeaseAlreadyBroken" 108 109 // ServiceCodeLeaseIDMismatchWithBlobOperation means the lease ID specified did not match the lease ID for the blob. 110 ServiceCodeLeaseIDMismatchWithBlobOperation ServiceCodeType = "LeaseIdMismatchWithBlobOperation" 111 112 // ServiceCodeLeaseIDMismatchWithContainerOperation means the lease ID specified did not match the lease ID for the container. 113 ServiceCodeLeaseIDMismatchWithContainerOperation ServiceCodeType = "LeaseIdMismatchWithContainerOperation" 114 115 // ServiceCodeLeaseIDMismatchWithLeaseOperation means the lease ID specified did not match the lease ID for the blob/container. 116 ServiceCodeLeaseIDMismatchWithLeaseOperation ServiceCodeType = "LeaseIdMismatchWithLeaseOperation" 117 118 // ServiceCodeLeaseIDMissing means there is currently a lease on the blob/container and no lease ID was specified in the request. 119 ServiceCodeLeaseIDMissing ServiceCodeType = "LeaseIdMissing" 120 121 // ServiceCodeLeaseIsBreakingAndCannotBeAcquired means the lease ID matched, but the lease is currently in breaking state and cannot be acquired until it is broken. 122 ServiceCodeLeaseIsBreakingAndCannotBeAcquired ServiceCodeType = "LeaseIsBreakingAndCannotBeAcquired" 123 124 // ServiceCodeLeaseIsBreakingAndCannotBeChanged means the lease ID matched, but the lease is currently in breaking state and cannot be changed. 125 ServiceCodeLeaseIsBreakingAndCannotBeChanged ServiceCodeType = "LeaseIsBreakingAndCannotBeChanged" 126 127 // ServiceCodeLeaseIsBrokenAndCannotBeRenewed means the lease ID matched, but the lease has been broken explicitly and cannot be renewed. 128 ServiceCodeLeaseIsBrokenAndCannotBeRenewed ServiceCodeType = "LeaseIsBrokenAndCannotBeRenewed" 129 130 // ServiceCodeLeaseLost means a lease ID was specified, but the lease for the blob/container has expired. 131 ServiceCodeLeaseLost ServiceCodeType = "LeaseLost" 132 133 // ServiceCodeLeaseNotPresentWithBlobOperation means there is currently no lease on the blob. 134 ServiceCodeLeaseNotPresentWithBlobOperation ServiceCodeType = "LeaseNotPresentWithBlobOperation" 135 136 // ServiceCodeLeaseNotPresentWithContainerOperation means there is currently no lease on the container. 137 ServiceCodeLeaseNotPresentWithContainerOperation ServiceCodeType = "LeaseNotPresentWithContainerOperation" 138 139 // ServiceCodeLeaseNotPresentWithLeaseOperation means there is currently no lease on the blob/container. 140 ServiceCodeLeaseNotPresentWithLeaseOperation ServiceCodeType = "LeaseNotPresentWithLeaseOperation" 141 142 // ServiceCodeMaxBlobSizeConditionNotMet means the max blob size condition specified was not met. 143 ServiceCodeMaxBlobSizeConditionNotMet ServiceCodeType = "MaxBlobSizeConditionNotMet" 144 145 // ServiceCodeNoPendingCopyOperation means there is currently no pending copy operation. 146 ServiceCodeNoPendingCopyOperation ServiceCodeType = "NoPendingCopyOperation" 147 148 // ServiceCodeOperationNotAllowedOnIncrementalCopyBlob means the specified operation is not allowed on an incremental copy blob. 149 ServiceCodeOperationNotAllowedOnIncrementalCopyBlob ServiceCodeType = "OperationNotAllowedOnIncrementalCopyBlob" 150 151 // ServiceCodePendingCopyOperation means there is currently a pending copy operation. 152 ServiceCodePendingCopyOperation ServiceCodeType = "PendingCopyOperation" 153 154 // ServiceCodePreviousSnapshotCannotBeNewer means the prevsnapshot query parameter value cannot be newer than snapshot query parameter value. 155 ServiceCodePreviousSnapshotCannotBeNewer ServiceCodeType = "PreviousSnapshotCannotBeNewer" 156 157 // ServiceCodePreviousSnapshotNotFound means the previous snapshot is not found. 158 ServiceCodePreviousSnapshotNotFound ServiceCodeType = "PreviousSnapshotNotFound" 159 160 // ServiceCodePreviousSnapshotOperationNotSupported means that differential Get Page Ranges is not supported on the previous snapshot. 161 ServiceCodePreviousSnapshotOperationNotSupported ServiceCodeType = "PreviousSnapshotOperationNotSupported" 162 163 // ServiceCodeSequenceNumberConditionNotMet means the sequence number condition specified was not met. 164 ServiceCodeSequenceNumberConditionNotMet ServiceCodeType = "SequenceNumberConditionNotMet" 165 166 // ServiceCodeSequenceNumberIncrementTooLarge means the sequence number increment cannot be performed because it would result in overflow of the sequence number. 167 ServiceCodeSequenceNumberIncrementTooLarge ServiceCodeType = "SequenceNumberIncrementTooLarge" 168 169 // ServiceCodeSnapshotCountExceeded means the snapshot count against this blob has been exceeded. 170 ServiceCodeSnapshotCountExceeded ServiceCodeType = "SnapshotCountExceeded" 171 172 // ServiceCodeSnaphotOperationRateExceeded means the rate of snapshot operations against this blob has been exceeded. 173 ServiceCodeSnaphotOperationRateExceeded ServiceCodeType = "SnaphotOperationRateExceeded" 174 175 // ServiceCodeSnapshotsPresent means this operation is not permitted while the blob has snapshots. 176 ServiceCodeSnapshotsPresent ServiceCodeType = "SnapshotsPresent" 177 178 // ServiceCodeSourceConditionNotMet means the source condition specified using HTTP conditional header(s) is not met. 179 ServiceCodeSourceConditionNotMet ServiceCodeType = "SourceConditionNotMet" 180 181 // ServiceCodeSystemInUse means this blob is in use by the system. 182 ServiceCodeSystemInUse ServiceCodeType = "SystemInUse" 183 184 // ServiceCodeTargetConditionNotMet means the target condition specified using HTTP conditional header(s) is not met. 185 ServiceCodeTargetConditionNotMet ServiceCodeType = "TargetConditionNotMet" 186 187 // ServiceCodeUnauthorizedBlobOverwrite means this request is not authorized to perform blob overwrites. 188 ServiceCodeUnauthorizedBlobOverwrite ServiceCodeType = "UnauthorizedBlobOverwrite" 189 190 // ServiceCodeBlobBeingRehydrated means this operation is not permitted because the blob is being rehydrated. 191 ServiceCodeBlobBeingRehydrated ServiceCodeType = "BlobBeingRehydrated" 192 193 // ServiceCodeBlobArchived means this operation is not permitted on an archived blob. 194 ServiceCodeBlobArchived ServiceCodeType = "BlobArchived" 195 196 // ServiceCodeBlobNotArchived means this blob is currently not in the archived state. 197 ServiceCodeBlobNotArchived ServiceCodeType = "BlobNotArchived" 198) 199