isClientError property

bool get isClientError

Check if this is a client error (4xx)

Implementation

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