All Products
Search
Document Center

Object Storage Service:0013-00000101

Last Updated:Apr 29, 2024

Problem description

The value of x-oss-storage-class is invalid.

Causes

You initiated a request such as PutBucket or CopyObject and specified the x-oss-storage-class header in the request. However, the value specified for the header is not a valid string. The value of x-oss-storage-class can be:

  • Standard

  • IA

  • Archive

  • ColdArchive

  • DeepColdArchive

Examples

In the following request, the value of the x-oss-storage-class header is test, which is not a valid string. As a result, a request error is reported.

PUT /dest-object-example HTTP/1.1
Host: bucket-copy.oss-cn-hangzhou.aliyuncs.com
Date: Tue, 09 Apr 2019 03:45:32 GMT
Authorization: OSS qn6q**************:77Dv****************
x-oss-copy-source: /bucket-copy/source-object
x-oss-storage-class: test

Solutions

Make sure that the value of the x-oss-storage-class header is a valid string.

References

Overview