You can avoid using the ```response``` variable here; remove line 26, and in the ```if``` block:

```
Excon::Response.new({
   :status => 200,
   :body => { 'ResponseMetadata' => { ... } }
})
```