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.
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.

ThePletch/pact_broker,pact-foundation/pact_broker,jlegrone/express-hal-browser,gregturn/hal-browser,ozone-development/hal-browser,gregturn/hal-browser,jlegrone/express-hal-browser,tancnle/pact_broker,Mediahead-AG/node-hal-browser,FoxyCart/hal-browser,tancnle/pact_broker,mikekelly/hal-browser,pact-foundation/pact_broker,ziodave/hal-browser,pact-foundation/pact_broker,tancnle/pact_broker,pact-foundation/pact_broker,elgalu/pact_broker,ThePletch/pact_broker,elgalu/pact_broker,jelmerk/hal-browser,ozone-development/hal-browser,elgalu/pact_broker,ziodave/hal-browser,bethesque/pact_broker,bethesque/pact_broker,flamilton/hal-browser,bethesque/pact_broker,MGDIS/hal-browser,FoxyCart/hal-browser,mikekelly/hal-browser,bethesque/pact_broker,ThePletch/pact_broker,elgalu/pact_broker,ThePletch/pact_broker,flamilton/hal-browser,MGDIS/hal-browser,tancnle/pact_broker,FoxyCart/hal-browser