Static website response codes
Written by
Updated at August 2, 2024
If a bucket is configured to host static websites, the user trying to access it may get any of the response codes described in the table below.
Code | Description |
---|---|
200 OK |
Successful response. |
302 Found |
If Object Storage receives a request to the resource http://website.yandexcloud.net/bucket/x without a / at the end, Object Storage first tries to find object x . If this object doesn't exist, but x/index.html is set as the website homepage, the user receives a 302 response and is redirected to the resource http://website.yandexcloud.net/bucket/x/ . |
304 Not Modified |
Object Storage uses the If-Modified-Since , If-Unmodified-Since , If-Match , and If-None-Match request headers to determine whether an object was modified when compared to the one previously cached on the client side. If the object wasn't modified, the user gets the 304 Not Modified response. |
403 Forbidden |
Returned if public access wasn't configured for the bucket that the request was sent to. Configuring public access to a bucket. |
404 Not Found |
Returned if the resource that the request was sent to doesn't exist or the bucket where the requested resource is located isn't configured for hosting static websites. Hosting setup. |
500 Service Error |
Internal error in Object Storage. |
503 Service Unavailable |
The load on the service is too high. You need to reduce your request rate. |