statusDescription property

String get statusDescription

Helper to get a description of the status code, useful for debugging.

Implementation

String get statusDescription {
  if (isOk) return 'Success';
  if (isClientError) return 'Client Error';
  if (isServerError) return 'Server Error';
  if (isRedirect) return 'Redirection';
  return 'Unknown Status';
}