public function hasHttpError(): bool
    {
        $httpStatus = new NanoHttpStatus();

        return $httpStatus->isClientError($this->httpStatusCode) || $httpStatus->isServerError($this->httpStatusCode);
    }
public function hasHttpError(): bool
    {
        $httpStatus = new NanoHttpStatus();

        return $httpStatus->isClientError($this->httpStatusCode) || $httpStatus->isServerError($this->httpStatusCode);
    }
public function hasHttpError ( ) : bool { $ httpStatus = new NanoHttpStatus ( ) ; return $ httpStatus -> isClientError ( $ this -> httpStatusCode ) || $ httpStatus -> isServerError ( $ this -> httpStatusCode ) ; }
Returns if current response context has HTTP error status code set

@return bool
Returns if current response context has HTTP error status code set