method HTTPRequest.prototype.failureimport { HTTPRequest } from "https://deno.land/x/pptr@1.2.0/src/HTTPRequest.ts"; failure(): { errorText: string; } | nullAccess information about the request's failure. ExamplesExample of logging all failed requests: page.on('requestfailed', request => { console.log(request.url() + ' ' + request.failure().errorText); }); Returns{ errorText: string; } | nullnull unless the request failed. If the request fails this can return an object with errorText containing a human-readable error message, e.g. net::ERR_FAILED. It is not guaranteeded that there will be failure text if the request fails.