<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [puppeteer](./puppeteer.md) &gt; [HTTPRequest](./puppeteer.httprequest.md) &gt; [failure](./puppeteer.httprequest.failure.md)

## HTTPRequest.failure() method

<b>Signature:</b>

```typescript
failure(): {
        errorText: string;
    } | null;
```
<b>Returns:</b>

{ errorText: string; } \| null

{<!-- -->?<!-- -->{<!-- -->errorText: string<!-- -->}<!-- -->}

