0019-00000002
Problem description
An invalid parameter value exists in the XML body of the static website configuration request.
Causes
The XML data in the body of the PutBucketWebSite request contains an invalid parameter value.
Examples
For example, you initiate the following request:
PUT /?website HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: SignatureValue
<?xml version="1.0" encoding="UTF-8"?>
<WebsiteConfiguration>
<IndexDocument>
<Suffix>index.html</Suffix>
</IndexDocument>
<ErrorDocument>
<Key>errorDocument.html</Key>
<HttpStatus>test</HttpStatus>
</ErrorDocument>
</WebsiteConfiguration>
The error is returned for the sample request because the HttpStatus parameter is set to test, but the parameter requires a valid integer value that indicates an HTTP status code.
Solutions
Adjust your XML configuration based on the error message and error details returned by Object Storage Service (OSS) or the sample requests provided in the reference topics. For example, OSS returns the following response to the preceding sample request:
<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>InvalidArgument</Code>
<Message>HttpStatus is Invalid</Message>
<RequestId>63D5E4E5CCB67C39323A6A45</RequestId>
<HostId>zmf-dinary.oss-cn-hangzhou-zmf.aliyuncs.com</HostId>
<ArgumentName>HttpStatus</ArgumentName>
<ArgumentValue>test</ArgumentValue>
<EC>0019-00000002</EC>
</Error>
In the response, the ArgumentName parameter indicates that the invalid parameter is HttpStatus. You can replace the parameter settings in the request with the following content:
PUT /?website HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: SignatureValue
<?xml version="1.0" encoding="UTF-8"?>
<WebsiteConfiguration>
<IndexDocument>
<Suffix>index.html</Suffix>
</IndexDocument>
<ErrorDocument>
<Key>errorDocument.html</Key>
<HttpStatus>404</HttpStatus>
</ErrorDocument>
</WebsiteConfiguration>