isClientError property
bool
get
isClientError
Check if the response is a client error (status code 400-499)
Implementation
bool get isClientError {
if (statusCode == null) return false;
return statusCode! >= 400 && statusCode! < 500;
}