bengler/pebblebed — pull request #31 by skogsmaskin (2012-12-13 13:03:34+00:00)
Title: Add original API response to http error

Makes it possible to parse and do something sane with the nice JSON-responses that some pebbles gives.

```
begin
ReaktorRetriever.checkpoint.post("/identities", {:account => account})
rescue Pebblebed::HttpError => e
if e.status == 409
identity = JSON.parse(e.response.body)['identity']
ReaktorRetriever.checkpoint.post("/identities/#{identity}", {:account => account})
...
```