All Products
Search
Document Center

Object Storage Service:0005-00000213

Last Updated:Jun 18, 2026

Problem description

An HTTP 400 error indicating an invalid key is returned when you read, upload, or download objects in an Object Storage Service (OSS) bucket that uses server-side encryption with Key Management Service (KMS)-managed keys.

Causes

The KMS-managed key specified in the request is invalid.

Examples

For example, a 400 error is returned when you upload an object to a bucket that uses SSE-KMS and the specified KMS key contains invalid characters.

Solutions

Check the error details in the KMS documentation and resolve the issue. For more information, see Sample responses.

You can also contact KMS technical support.

References