Failure.notFound constructor

const Failure.notFound({
  1. String message = 'Resource not found',
  2. int? code = 404,
  3. StackTrace? stackTrace,
  4. Object? cause,
})

HTTP 404 — the target resource does not exist.

Implementation

const Failure.notFound({
  this.message = 'Resource not found',
  this.code = 404,
  this.stackTrace,
  this.cause,
})  : retryAfter = null,
      kind = FailureKind.notFound,
      type = FailureType.notFound;