toHttpStatusDevMessage property

String get toHttpStatusDevMessage

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

Implementation

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