isServerError method

bool isServerError()

Check if status is within 500-599.

Implementation

bool isServerError() => 600 > code && code >= 500;