if ($response->getResponseCode() >= 400 || null === ($json = json_decode($response->getBody()))) {
throw new \app\Github\Exception\RequestException($response);
}
if ($response->getResponseCode() >= 400 || null === ($json = json_decode($response->getBody()))) {
throw new \app\Github\Exception\RequestException($response);
}