对象存储服务 OBS-OPTIONS对象:错误响应消息

时间:2023-11-03 16:44:58

错误响应消息

此请求可能的特殊错误如下表3描述。

表3 特殊错误

错误码

描述

HTTP状态码

Bad Request

Invalid Access-Control-Request-Method: null

桶配置了CORS,OPTIONS桶时,没有加入method头域。

400 BadRequest

Bad Request

Insufficient information. Origin request header needed.

桶配置了CORS,OPTIONS桶时,没有加入origin头域。

400 BadRequest

AccessForbidden

CORSResponse: This CORS request is not allowed. This is usually because the evalution of Origin, request method / Access-Control-Request-Method or Access-Control-Requet-Headers are not whitelisted by the resource's CORS spec.

桶配置了CORS,OPTIONS桶时,Origin、method、Headers与任一rule匹配不上。

403 Forbidden

其余错误已经包含在表2中。

support.huaweicloud.com/api-obs/obs_04_0078.html