ok property

bool ok

Contains a boolean stating whether the response was successful (status in the range 200-299) or not.

Implementation

bool get ok => status == 0 || (status >= 200 && status <= 299);