• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (OBS)
  4. Operations on Objects
  5. POST Object restore
  6. Responses

Responses

Syntax

HTTP/1.1 status_code 
Server: server
x-amz-request-id: request id   
x-amz-id-2: id   
x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc   
Date: date

Response Headers

This response uses common headers. For details, see section Common Response Headers.

Response Elements

This response involves no elements.

Error Responses

Table 1 List of OBS error codes

Error Code

Description

HTTP Status Code

RestoreAlreadyInProgress

The object is being restored. The request conflicts with another.

ErrorMessage: Object restore is already in progress

409 Conflict

ObjectHasAlreadyRestored

The object has been restored and the retention period of the restored object is not allowed to be shortened.

ErrorMessage: After restoring a Cold object, you cannot shorten the restoration period of the Cold object

409 Conflict

MalformedXML

Invalid value for the Days field (not an integer)

ErrorMessage: The XML you provided was not well-formed or did not validate against our published schema

400 Bad Request

InvalidArgument

The value of the Days field is not within the range of 1to 30.

ErrorMessage: restoration days should be at least 1 and at most 30

400 Bad Request

MalformedXML

Invalid value for the Tier field.

ErrorMessage: The XML you provided was not well-formed or did not validate against our published schema

400 Bad Request

InvalidObjectState

The restored object is not a Cold object.

ErrorMessage: Restore is not allowed, as object's storage class is not GLACIER

403 Forbidden