ECS Swift error codes
The error codes that can be generated by the OpenStack Swift head are listed in the following table. All errors are of type: ObjectAccessException.
Table 1. Error CodesThe following table lists the error codes
Error Code
|
HTTP Status Code
|
HTTP Status
|
Description
|
ERROR_NAMESPACE_NOT_FOUND
|
400
|
BAD_REQUEST
|
Namespace not found.
|
ERROR_KEYPOOL_NOT_FOUND
|
404
|
NOT_FOUND
|
Keypool not found.
|
ERROR_KEYPOOL_NOT_EMPTY
|
409
|
CONFLICT
|
Keypool not empty.
|
ERROR_OBJECT_NOT_FOUND
|
404
|
NOT_FOUND
|
Object not found.
|
ERROR_VERSION_NOT_FOUND
|
404
|
NOT_FOUND
|
Version not found.
|
ERROR_ACCESS_DENIED
|
403
|
FORBIDDEN
|
null
|
ERROR_SERVICE_BUSY
|
503
|
SERVICE_UNAVAILABLE
|
null
|
ERROR_PRECONDITION_FAILED
|
412
|
PRECONDITION_FAILED
|
null
|
ERROR_INVALID_ARGUMENT
|
400
|
BAD_REQUEST
|
Invalid argument.
|
ERROR_BAD_ETAG
|
422
|
SC_UNPROCESSABLE_ENTITY
|
Bad etag.
|
ERROR_PROJECT_NOT_FOUND
|
404
|
NOT_FOUND
|
SwiftException. NO_PROJECT_FOUND.
|
ERROR_NO_DEVICE
|
404
|
NOT_FOUND
|
SwiftException. NO_DATA_STORE_FOUND. //add 416- Requested Range Not Satisfiable to errorMap.
|
ERROR_INVALID_RANGE
|
422
|
SC_REQUESTED_RANGE_NOT_ SATISFIABLE
|
Requested range cannot be satisfied.
|
ERROR_INSUFFICIENT_STORAGE
|
507
|
SC_INSUFFICIENT_STORAGE
|
The server cannot process the request because there is not enough space on disk.
|
ERROR_RETENTION_INCORRECT
|
404
|
SC_NOT_FOUND
|
The specified retention does not exist.
|
ERROR_OBJECT_UNDER_RETENTION
|
409
|
SC_CONFLICT
|
The object is under retention and cannot be deleted or modified.
|
ERROR_METHOD_NOT_ALLOWED
|
403
|
SC_FORBIDDEN
|
Quota may have been exceeded.
|
ERROR_BUCKET_NOT_FOUND
|
404
|
NOT_FOUND
|
Bucket not found.
|
ERROR_KEYPOOL_OPERATION_NOT _SUPPORTED
|
400
|
BAD_REQUEST
|
VersionEnabled and FileSystemEnabled functionality is not supported.
|
ERROR_REP_GROUP_NOT_FOUND
|
400
|
BAD_REQUEST
|
Specified Replication Group is Invalid.
|
ERROR_OBJECT_METADATA_REACH _MAXIMUM
|
400
|
BAD_REQUEST
|
Metadata exceeds max allowed length.
|
ERROR_KEYPOOL_LOCKED
|
409
|
CONFLICT
|
Bucket may be locked.
|
ERROR_INVALID_PART
|
409
|
CONFLICT
|
Segment eTag differs from that of the manifest.
|
ERROR_DELETE_DIRECTORY_NOT _EMPTY
|
409
|
CONFLICT
|
Directory is not empty.
|
ERROR_API_INVALID
|
400
|
BAD_REQUEST
|
Cross head access is not supported.
|
Data is not available for the Topic