public function getResponseCode()
{
$headers = $this->getHeaders();
if ($headers == false || !isset($headers['status'])) {
return false;
}
preg_match('/.*?\\s([0-9]*?)\\s.*/', $headers['status'], $match);
if (!isset($match[1])) {
return false;
}
return $match[1];
}