A result resource represents the response produced by handling a web request, including its content and HTTP status code. ASP.NET Core uses built-in results to return content, not-found responses, files, and other response types from minimal API actions. section 3.1.2
Use result resources when the default 200 response is not sufficient:
- Return Results.NotFound when a requested font does not exist instead of silently selecting a default. section 3.1.2
Conditional response selection
An endpoint can call a method that reports success through a Boolean and supplies generated text through an out parameter, then select Results.Content or Results.NotFound accordingly.



