Back to Puppeteer

HTTPResponse.ok() method

docs/api/puppeteer.httpresponse.ok.md

19.2.2191 B
Original Source

HTTPResponse.ok() method

True if the response was successful (status in the range 200-299).

Signature

typescript
class HTTPResponse {
  ok(): boolean;
}

Returns:

boolean