You need to enable JavaScript to run this app.
Torch Object Storage

Torch Object Storage

Copy page
Download PDF
13-WEBSITE
0013-00000010
Copy page
Download PDF
0013-00000010
Problem description​
Static website configuration is invalid.​
Root cause​
When configuring a static website, the HttpErrorCodeReturnedEquals value in the redirect rule is outside the range [400, 599].​
Example​
During static website configuration, the HttpErrorCodeReturnedEquals value in the redirect rule is set to an invalid value of 200.​
​
PUT /?website HTTP/1.1​
Host: <Bucket name>.<TOS endpoint>​
Date: Fri, 30 Jul 2021 13:59:18 GMT​
Authorization: authorization xxx​
​
{​
"RedirectAllRequestsTo": {​
"HostName": "example.com",​
"Protocol": "https"​
},​
"IndexDocument": {​
"Suffix": "index.html",​
"ForbiddenSubDir": "false"​
},​
"ErrorDocument": {​
"Key": "error.html"​
},​
"RoutingRules": [​
{​
"Condition": {​
"KeyPrefixEquals": "abc",​
"HttpErrorCodeReturnedEquals": 200​
},​
"Redirect": {​
"HostName": "example.com",​
"HttpRedirectCode": 301,​
"Protocol": "http",​
"ReplaceKeyWith": "redirect.html"​
}​
}​
]​
}​
​
Solution ​
Refer to PutBucketWebsite to correctly configure the static website, ensuring the HttpErrorCodeReturnedEquals value in the redirect rule is valid.​
Last updated: 2025.10.10 18:58:06