diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-06-10 21:55:13 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-06-10 21:55:13 -0700 |
| commit | 310e31424e37c16dd73d911e79f31159d1b367a3 (patch) | |
| tree | 6c592b73152d5eb248f2c7032bc38dc747ec2494 /weed/s3api/s3err/s3api_errors.go | |
| parent | 8b382a82097d6fb0f6addb4095a5a090a0ba09d9 (diff) | |
| download | seaweedfs-310e31424e37c16dd73d911e79f31159d1b367a3.tar.xz seaweedfs-310e31424e37c16dd73d911e79f31159d1b367a3.zip | |
adjust the error output
fix https://github.com/chrislusf/seaweedfs/issues/2123
Diffstat (limited to 'weed/s3api/s3err/s3api_errors.go')
| -rw-r--r-- | weed/s3api/s3err/s3api_errors.go | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/weed/s3api/s3err/s3api_errors.go b/weed/s3api/s3err/s3api_errors.go index 7f0ffdf86..a46bd0f04 100644 --- a/weed/s3api/s3err/s3api_errors.go +++ b/weed/s3api/s3err/s3api_errors.go @@ -15,11 +15,13 @@ type APIError struct { // RESTErrorResponse - error response format type RESTErrorResponse struct { - XMLName xml.Name `xml:"Error" json:"-"` - Code string `xml:"Code" json:"Code"` - Message string `xml:"Message" json:"Message"` - Resource string `xml:"Resource" json:"Resource"` - RequestID string `xml:"RequestId" json:"RequestId"` + XMLName xml.Name `xml:"Error" json:"-"` + Code string `xml:"Code" json:"Code"` + Message string `xml:"Message" json:"Message"` + Resource string `xml:"Resource" json:"Resource"` + RequestID string `xml:"RequestId" json:"RequestId"` + Key string `xml:"Key,omitempty" json:"Key,omitempty"` + BucketName string `xml:"BucketName,omitempty" json:"BucketName,omitempty"` // Underlying HTTP status code for the returned error StatusCode int `xml:"-" json:"-"` |
