CapnKernul/zeppelin — Issue #7: Cannot View Failed Response Errors
Author: jherdman
Created: 2012-01-27 16:00:28+00:00
State: open

Sometimes UAS sends a failed response, and when it does so it includes an error message in the body of the response. The way Zeppelin is written right now we don't have access to this message. I have two ideas concerning how to overcome this problem.

## Return the Response Object Directly

Instead of simply returning true/nil/parsed response body, we return the response object itself and force the user to deal with it. This is my preference, but would be a breaking API change.

## Save the Response in an Attribute

When we receive a response, we save it in an attribute called `#last_response`. This would not break the existing API, and would allow the user to inspect the response if need be. This is also a fairly small change compared to the first option.

i'm more than willing to do the work to achieve either, but I thought there should probably be some discussion on the matter.