isError method

  1. @override
bool isError()
override

Whether this status code is in the Client or Server Error class @see RFC 2616 @see RFC 2616 ({@code 4xx} or {@code 5xx}). @see #is4xxClientError() @see #is5xxServerError()

Implementation

@override
bool isError() {
  int hundreds = _hundreds();
  return hundreds == 4 || hundreds == 5;
}