// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc.Infrastructure;
namespace Microsoft.AspNetCore.Mvc
{
///
/// An that when executed will produce a Not Found (404) response.
///
[DefaultStatusCode(DefaultStatusCode)]
public class NotFoundObjectResult : ObjectResult
{
private const int DefaultStatusCode = StatusCodes.Status404NotFound;
///
/// Creates a new instance.
///
/// The value to format in the entity body.
public NotFoundObjectResult(object value)
: base(value)
{
StatusCode = DefaultStatusCode;
}
}
}