aws/aws-cli — pull request #668 by quiver (2014-02-23 08:07:59+00:00)
Title: support for interpreting XML-formatted response body

how to return xml error message

How to reproduce

1. store object in s3
2. archive to glacier
3. $ aws cp s3://bucket/glacier/foo.jpg foo.jpg

You'll get XML-formatted response body as follows:
```
\nInvalidObjectStateThe operation is not valid for the object\'s storage classC1E9DD0E49204444dummy
```

before fix

```
download failed: s3://bucket/glacier/foo.jpg to ./foo.jpg A client error (Unknown) occurred when calling the GetObject operation: Unknown
```

after fix

```
download failed: s3://bucket/glacier/foo.jpg to ./foo.jpg A client error (InvalidObjectState) occurred when calling the GetObject operation: The operation is not valid for the object's storage class
```