toHttpStatusMessage property

String get toHttpStatusMessage

Returns the HTTP status message associated with the number. If the status code is not found, it returns "Not Found".

Implementation

String get toHttpStatusMessage {
  final statusCode = _asHttpStatusCode(this);
  return statusCode == null
      ? 'Not Found'
      : (httpStatusMessages[statusCode] ?? 'Not Found');
}