added check for server exception error from guzzle