in src/Response/Response.php [45:62]
public function __construct(MessageResponseInterface $response)
{
$this->response = $response;
$status = $response->getStatusCode();
if ($status > 399 && $status < 500) {
$error = new ClientErrorResponseException(
sprintf("%s %s", $status, $response->getReasonPhrase()),
$status
);
throw $error->setResponse($response);
} elseif ($status > 499 && $status < 600) {
$error = new ServerErrorResponseException(
sprintf("%s %s", $status, $response->getReasonPhrase()),
$status
);
throw $error->setResponse($response);
}
}