Added Request::getError() method.