statusText property

String statusText

The status message corresponding to the status code. (e.g., OK for 200).

MDN Reference

Implementation

String get statusText => switch (_storage[#statusText]) {
      String statusText => statusText,
      _ => status.httpReasonPhrase,
    };