Updated the error response handler so that it tries to parse the response body as JSON rather than just assuming there is no response body.

This is useful when the response has an error status code but still contains valid hal+json content.
Merge pull request #38 from col/render_error_response

Parse and render error response content rather than just the headers.