mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
20 lines
234 B
Markdown
20 lines
234 B
Markdown
---
|
|
sidebar_label: HTTPResponse.ok
|
|
---
|
|
|
|
# HTTPResponse.ok() method
|
|
|
|
True if the response was successful (status in the range 200-299).
|
|
|
|
#### Signature:
|
|
|
|
```typescript
|
|
class HTTPResponse {
|
|
ok(): boolean;
|
|
}
|
|
```
|
|
|
|
**Returns:**
|
|
|
|
boolean
|