I\'m trying to catch exceptions from a set of tests I\'m running on an API I\'m developing and I\'m using Guzzle to consume the API methods. I\'ve got the tests wrapped in a
You need to add a extra parameter with http_errors => false
$request = $client->get($url, ['http_errors' => false]);