Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. Microsoft.AspNetCore.Http
  3. OpenApiRouteHandlerBuilderExtensions
  4. ProducesProblem(RouteHandlerBuilder, Int32, String)
  • OpenApiRouteHandlerBuilderExtensions
    • Accepts(RouteHandlerBuilder, Type, String, String[])
    • Accepts(RouteHandlerBuilder, Type, Boolean, String, String[])
    • Accepts<TRequest>(RouteHandlerBuilder, String, String[])
    • Accepts<TRequest>(RouteHandlerBuilder, Boolean, String, String[])
    • ExcludeFromDescription(RouteHandlerBuilder)
    • ExcludeFromDescription<TBuilder>(TBuilder)
    • Produces(RouteHandlerBuilder, Int32, Type, String, String[])
    • Produces<TResponse>(RouteHandlerBuilder, Int32, String, String[])
    • ProducesProblem(RouteHandlerBuilder, Int32, String)
    • ProducesProblem<TBuilder>(TBuilder, Int32, String)
    • ProducesValidationProblem(RouteHandlerBuilder, Int32, String)
    • ProducesValidationProblem<TBuilder>(TBuilder, Int32, String)
    • WithDescription<TBuilder>(TBuilder, String)
    • WithSummary<TBuilder>(TBuilder, String)
    • WithTags(RouteHandlerBuilder, String[])
    • WithTags<TBuilder>(TBuilder, String[])
net9.0
namespace Microsoft.AspNetCore.Http
{
    public static class OpenApiRouteHandlerBuilderExtensions
    {
        public static RouteHandlerBuilder! ProducesProblem(this RouteHandlerBuilder! builder, int statusCode, string? contentType = null);
    }
}
.NET
6.07.08.09.0
Information specific to net9.0
Assembly

Microsoft.AspNetCore.Routing , Version=9.0.0.0, PublicKeyToken=adb9793829ddae60

Referencing

Requires any:

  • Your project needs to use SDK Microsoft.NET.Sdk.Web.

  • Your project needs a framework reference to Microsoft.AspNetCore.App.

Platform Restrictions

This API is supported on all platforms.

  • Built-in API
  • Package-provided API
Search

10/15/2026
This site is managed by Microsoft | © 2026 Microsoft. All rights reserved.
  • Privacy Statement
  • Consumer Health Privacy
  • Terms of Use
  • Contact Us
  • Hosted on Microsoft Azure
  • Manage cookies
  • Your Privacy Choices
Oops, we couldn't process your request. Reload 🗙