Returning response instead of response code in failure callbacks.

Fixes #5.