status property

DebugStatus get status

Implementation

DebugStatus get status {
  if (isPending) return DebugStatus.pending;
  final code = statusCodeValue;
  if (code == null) return DebugStatus.failed;
  if (code >= 500) return DebugStatus.serverError;
  if (code >= 400) return DebugStatus.clientError;
  if (code >= 300) return DebugStatus.redirect;
  return DebugStatus.success;
}