isClientError property

bool get isClientError

Whether the response is a client error (4xx).

Implementation

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