uage-TypeScript">import { HttpRequestError } from &quot;@pnp/queryable&quot;;
import { hOP } from &quot;@pnp/core&quot;;

export async function handleError(e: Error | HttpRequestError): Promise&lt;void&gt; {

  //Checks to see if the error object has a property called isHttpRequestError. Returns a bool.
  if (hOP(e, &quot;isHttpRequestError&quot;)) {
      // Handle this type or error
  } else {
    // not an HttpRequestError so we do something else

  }
}
</code></pre>
<h2 id="jss">jsS<a class="headerlink"