isClientError property

bool get isClientError

True if 4xx client error

Implementation

bool get isClientError => statusCode >= 400 && statusCode < 500;