MireaBackend/Endpoint/Common/Extensions/NotFoundResponseAttribute.cs

8 lines
344 B
C#

using Microsoft.AspNetCore.Http;
using System;
using Microsoft.AspNetCore.Mvc;
namespace Mirea.Api.Endpoint.Common.Extensions;
[AttributeUsage(AttributeTargets.Method, Inherited = false, AllowMultiple = true)]
public class NotFoundResponseAttribute() : ProducesResponseTypeAttribute(typeof(ErrorResponseVm), StatusCodes.Status404NotFound);