aspnetcore/src/Microsoft.AspNetCore.Mvc.Core/UnprocessableEntityResult.cs

23 lines
717 B
C#

// 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;
namespace Microsoft.AspNetCore.Mvc
{
/// <summary>
/// A <see cref="StatusCodeResult"/> that when
/// executed will produce a Unprocessable Entity (422) response.
/// </summary>
public class UnprocessableEntityResult : StatusCodeResult
{
/// <summary>
/// Creates a new <see cref="UnprocessableEntityResult"/> instance.
/// </summary>
public UnprocessableEntityResult()
: base(StatusCodes.Status422UnprocessableEntity)
{
}
}
}