isForbidden property

bool get isForbidden

Whether the status code represents a 403 Forbidden access denial.

Implementation

bool get isForbidden => statusCode == 403;