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

I've 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. It it fails to parse the response body as JSON it will fall back to the original behaviour.

This is useful when the response has an error status code (500) but still contains valid hal+json content.