|
|
@ -51,6 +51,7 @@ type APIErrorResponse struct { |
|
|
|
Key string `xml:"Key,omitempty" json:"Key,omitempty"` |
|
|
|
Key string `xml:"Key,omitempty" json:"Key,omitempty"` |
|
|
|
BucketName string `xml:"BucketName,omitempty" json:"BucketName,omitempty"` |
|
|
|
BucketName string `xml:"BucketName,omitempty" json:"BucketName,omitempty"` |
|
|
|
Resource string |
|
|
|
Resource string |
|
|
|
|
|
|
|
Region string `xml:"Region,omitempty" json:"Region,omitempty"` |
|
|
|
RequestID string `xml:"RequestId" json:"RequestId"` |
|
|
|
RequestID string `xml:"RequestId" json:"RequestId"` |
|
|
|
HostID string `xml:"HostId" json:"HostId"` |
|
|
|
HostID string `xml:"HostId" json:"HostId"` |
|
|
|
} |
|
|
|
} |
|
|
@ -1735,6 +1736,7 @@ func getAPIErrorResponse(ctx context.Context, err APIError, resource, requestID, |
|
|
|
BucketName: reqInfo.BucketName, |
|
|
|
BucketName: reqInfo.BucketName, |
|
|
|
Key: reqInfo.ObjectName, |
|
|
|
Key: reqInfo.ObjectName, |
|
|
|
Resource: resource, |
|
|
|
Resource: resource, |
|
|
|
|
|
|
|
Region: globalServerConfig.GetRegion(), |
|
|
|
RequestID: requestID, |
|
|
|
RequestID: requestID, |
|
|
|
HostID: hostID, |
|
|
|
HostID: hostID, |
|
|
|
} |
|
|
|
} |
|
|
|