isClientError method

bool isClientError()

Check if status is within 400-499.

Implementation

bool isClientError() => 500 > code && code >= 400;