By jaypan on
Guzzle is a great HTTP Client, but it can be difficult to figure out how to get access to its error messages. I've put together a blog post explaining how to catch GuzzleException, and retrieve the full response from the remote server, making debugging Guzzle errors much easier:
https://www.morpht.com/blog/debugging-guzzle-http-request-errors-drupal