I am getting this PHP error:
Undefined offset: 1
Code is:
public function setHttpResponseCodeFromHeader($rawResponseHeader)
{
    preg_match('|HTTP/\d\.\d\s+(\d+)\s+.*|', $rawResponseHeader, $match);
    $this->httpResponseCode = (int)$match[1];
}
How to solve this error?
 
    