如果試圖以不支持的操作來(lái)訪問(wèn)某個(gè)資源,返回405 Method Not Allowed錯(cuò)誤
請(qǐng)求示例:abc /BucketName HTTP/1.1Host: storage.aliyun.comDate: dateAuthorization: signatureValue返回消息頭示例:x-oss-request-id: 2403382433A2EDA8Allow: GET, DELETE, HEAD, PUTContent-Type: application/xmlTransfer-Encoding: chunkedDate: Thu, 31 Mar 2011 10:01:52 GMTServer: AliyunOSS返回消息體示例:<?xml version="1.0" ?><Error> <Code> MethodNotAllowed </Code> <Message> The specified method is not allowed against this resource. </Message> <ResourceType> BUCKET </ResourceType> <Method> abc </Method> <RequestId> 2403382433A2EDA8 </RequestId> <HostId> storage.aliyun.com </HostId></Error>注意:如果訪問(wèn)的資源是 /bucket/, ResourceType應(yīng)該是bucket,如果訪問(wèn)的資源是 /bucket/object,ResourceType應(yīng)該是object。
新聞熱點(diǎn)
疑難解答
圖片精選