Error catching for guzzle