isClientError property

bool isClientError

Returns true if http status code is client error, otherwise false.

Implementation

bool get isClientError => 400 <= code && code <= 499;