1 type derived from ProblemDetails
Microsoft.AspNetCore.Http.Abstractions (1)
ProblemDetails\HttpValidationProblemDetails.cs (1)
12public class HttpValidationProblemDetails : ProblemDetails
11 instantiations of ProblemDetails
Aspire.Dashboard (4)
DashboardEndpointsBuilder.cs (4)
149return Results.NotFound(new ProblemDetails 180return Results.NotFound(new ProblemDetails 201return Results.NotFound(new ProblemDetails 219return Results.NotFound(new ProblemDetails
Microsoft.AspNetCore.Diagnostics (1)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (1)
251var problemDetails = new ProblemDetails
Microsoft.AspNetCore.Http.Abstractions (1)
ProblemDetails\ProblemDetailsContext.cs (1)
31get => _problemDetails ??= new ProblemDetails();
Microsoft.AspNetCore.Http.Extensions (1)
_generated\2\ProblemDetailsJsonContext.ProblemDetails.g.cs (1)
31ObjectCreator = () => new global::Microsoft.AspNetCore.Mvc.ProblemDetails(),
Microsoft.AspNetCore.Http.Results (1)
TypedResults.cs (1)
789var problemDetails = new ProblemDetails
Microsoft.AspNetCore.Mvc.Core (2)
ControllerBase.cs (1)
1870problemDetails = new ProblemDetails
Infrastructure\DefaultProblemDetailsFactory.cs (1)
48var problemDetails = new ProblemDetails
Microsoft.AspNetCore.Mvc.Formatters.Xml (1)
ProblemDetailsWrapper.cs (1)
28: this(new ProblemDetails())
211 references to ProblemDetails
Microsoft.AspNetCore.Diagnostics (6)
DeveloperExceptionPage\DeveloperExceptionPageMiddlewareImpl.cs (2)
249private ProblemDetails CreateProblemDetails(ErrorContext errorContext, HttpContext httpContext) 251var problemDetails = new ProblemDetails
StatusCodePage\StatusCodePagesExtensions.cs (2)
24/// <see cref="Microsoft.AspNetCore.Mvc.ProblemDetails"/> response using <see cref="IProblemDetailsService"/> 42/// <see cref="Microsoft.AspNetCore.Mvc.ProblemDetails"/> response. If the service is unavailable or cannot write the response,
StatusCodePage\StatusCodePagesOptions.cs (2)
19/// <see cref="Microsoft.AspNetCore.Mvc.ProblemDetails"/> response using <see cref="IProblemDetailsService"/>, and falls back 58/// By default this attempts to generate a <see cref="Microsoft.AspNetCore.Mvc.ProblemDetails"/> response
Microsoft.AspNetCore.Http.Abstractions (10)
Metadata\ProducesResponseTypeMetadata.cs (1)
91if (type is not null && typeof(ProblemDetails).IsAssignableFrom(type))
ProblemDetails\HttpValidationProblemDetails.cs (1)
10/// A <see cref="ProblemDetails"/> for validation errors.
ProblemDetails\IProblemDetailsService.cs (3)
8/// create a <see cref="Mvc.ProblemDetails"/> response. 13/// Write a <see cref="Mvc.ProblemDetails"/> response to the current context, 28/// Try to write a <see cref="Mvc.ProblemDetails"/> response to the current context,
ProblemDetails\IProblemDetailsWriter.cs (3)
7/// Defines a type that write a <see cref="Mvc.ProblemDetails"/> 13/// Write a <see cref="Mvc.ProblemDetails"/> response to the current context 19/// Determines whether this instance can write a <see cref="Mvc.ProblemDetails"/> to the current context.
ProblemDetails\ProblemDetailsContext.cs (2)
13private ProblemDetails? _problemDetails; 29public ProblemDetails ProblemDetails
Microsoft.AspNetCore.Http.Extensions (65)
_generated\1\ProblemDetailsJsonContext.HttpValidationProblemDetails.g.cs (24)
80DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails), 82Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Type, 83Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Type = value!, 90AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 101DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails), 103Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Title, 104Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Title = value!, 111AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Title", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 122DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails), 124Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Status, 125Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Status = value!, 132AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Status", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null), 143DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails), 145Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Detail, 146Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Detail = value!, 153AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Detail", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 164DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails), 166Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Instance, 167Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Instance = value!, 174AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Instance", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 185DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails), 187Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Extensions, 188Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Extensions = value!, 195AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Extensions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null),
_generated\12\ProblemDetailsJsonContext.GetJsonTypeInfo.g.cs (1)
26if (type == typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails))
_generated\2\ProblemDetailsJsonContext.ProblemDetails.g.cs (34)
13private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.ProblemDetails>? _ProblemDetails; 19public global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.ProblemDetails> ProblemDetails 22get => _ProblemDetails ??= (global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.ProblemDetails>)Options.GetTypeInfo(typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails)); 25private global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.ProblemDetails> Create_ProblemDetails(global::System.Text.Json.JsonSerializerOptions options) 27if (!TryGetTypeInfoForRuntimeCustomConverter<global::Microsoft.AspNetCore.Mvc.ProblemDetails>(options, out global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Microsoft.AspNetCore.Mvc.ProblemDetails> jsonTypeInfo)) 29var objectInfo = new global::System.Text.Json.Serialization.Metadata.JsonObjectInfoValues<global::Microsoft.AspNetCore.Mvc.ProblemDetails> 35ConstructorAttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetConstructor(InstanceMemberBindingFlags, binder: null, global::System.Array.Empty<global::System.Type>(), modifiers: null), 41jsonTypeInfo = global::System.Text.Json.Serialization.Metadata.JsonMetadataServices.CreateObjectInfo<global::Microsoft.AspNetCore.Mvc.ProblemDetails>(options, objectInfo); 58DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails), 60Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Type, 61Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Type = value!, 68AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Type", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 79DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails), 81Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Title, 82Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Title = value!, 89AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Title", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 100DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails), 102Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Status, 103Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Status = value!, 110AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Status", InstanceMemberBindingFlags, null, typeof(int?), global::System.Array.Empty<global::System.Type>(), null), 121DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails), 123Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Detail, 124Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Detail = value!, 131AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Detail", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 142DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails), 144Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Instance, 145Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Instance = value!, 152AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Instance", InstanceMemberBindingFlags, null, typeof(string), global::System.Array.Empty<global::System.Type>(), null), 163DeclaringType = typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails), 165Getter = static obj => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Extensions, 166Setter = static (obj, value) => ((global::Microsoft.AspNetCore.Mvc.ProblemDetails)obj).Extensions = value!, 173AttributeProviderFactory = static () => typeof(global::Microsoft.AspNetCore.Mvc.ProblemDetails).GetProperty("Extensions", InstanceMemberBindingFlags, null, typeof(global::System.Collections.Generic.IDictionary<string, object>), global::System.Array.Empty<global::System.Type>(), null),
ProblemDetailsJsonContext.cs (1)
10[JsonSerializable(typeof(ProblemDetails))]
ProblemDetailsOptions.cs (1)
13/// The operation that customizes the current <see cref="Mvc.ProblemDetails"/> instance.
ProblemDetailsServiceCollectionExtensions.cs (2)
18/// Adds services required for creation of <see cref="ProblemDetails"/> for failed requests. 29/// Adds services required for creation of <see cref="ProblemDetails"/> for failed requests.
Properties\AssemblyInfo.cs (1)
6[assembly: TypeForwardedTo(typeof(Microsoft.AspNetCore.Mvc.ProblemDetails))]
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
170public static void Apply(ProblemDetails problemDetails, int? statusCode)
Microsoft.AspNetCore.Http.Results (66)
HttpResultsHelper.cs (2)
38if (value is ProblemDetails) 150if (value is ProblemDetails problemDetails)
JsonHttpResultOfT.cs (2)
35if (value is ProblemDetails problemDetails) 55if (value is ProblemDetails problemDetails)
ProblemHttpResult.cs (5)
17public sealed class ProblemHttpResult : IResult, IEndpointMetadataProvider, IStatusCodeHttpResult, IContentTypeHttpResult, IValueHttpResult, IValueHttpResult<ProblemDetails> 24internal ProblemHttpResult(ProblemDetails problemDetails) 33public ProblemDetails ProblemDetails { get; } 37ProblemDetails? IValueHttpResult<ProblemDetails>.Value => ProblemDetails;
Results.cs (27)
706/// Produces a <see cref="ProblemDetails"/> response. 708/// <param name="statusCode">The value for <see cref="ProblemDetails.Status" />.</param> 709/// <param name="detail">The value for <see cref="ProblemDetails.Detail" />.</param> 710/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 711/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 712/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 713/// <param name="extensions">The value for <see cref="ProblemDetails.Extensions" />.</param> 725/// Produces a <see cref="ProblemDetails"/> response. 727/// <param name="statusCode">The value for <see cref="ProblemDetails.Status" />.</param> 728/// <param name="detail">The value for <see cref="ProblemDetails.Detail" />.</param> 729/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 730/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 731/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 732/// <param name="extensions">The value for <see cref="ProblemDetails.Extensions" />.</param> 746/// Produces a <see cref="ProblemDetails"/> response. 748/// <param name="problemDetails">The <see cref="ProblemDetails"/> object to produce a response from.</param> 750public static IResult Problem(ProblemDetails problemDetails) 758/// <param name="detail">The value for <see cref="ProblemDetails.Detail" />.</param> 759/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 761/// <param name="title">The value for <see cref="ProblemDetails.Title" />. Defaults to "One or more validation errors occurred."</param> 762/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 763/// <param name="extensions">The value for <see cref="ProblemDetails.Extensions" />.</param> 782/// <param name="detail">The value for <see cref="ProblemDetails.Detail" />.</param> 783/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 785/// <param name="title">The value for <see cref="ProblemDetails.Title" />. Defaults to "One or more validation errors occurred."</param> 786/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 787/// <param name="extensions">The value for <see cref="ProblemDetails.Extensions" />.</param>
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
170public static void Apply(ProblemDetails problemDetails, int? statusCode)
TypedResults.cs (29)
749/// Produces a <see cref="ProblemDetails"/> response. 751/// <param name="statusCode">The value for <see cref="ProblemDetails.Status" />.</param> 752/// <param name="detail">The value for <see cref="ProblemDetails.Detail" />.</param> 753/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 754/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 755/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 756/// <param name="extensions">The value for <see cref="ProblemDetails.Extensions" />.</param> 770/// Produces a <see cref="ProblemDetails"/> response. 772/// <param name="statusCode">The value for <see cref="ProblemDetails.Status" />.</param> 773/// <param name="detail">The value for <see cref="ProblemDetails.Detail" />.</param> 774/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 775/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 776/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 777/// <param name="extensions">The value for <see cref="ProblemDetails.Extensions" />.</param> 789var problemDetails = new ProblemDetails 804/// Produces a <see cref="ProblemDetails"/> response. 806/// <param name="problemDetails">The <see cref="ProblemDetails"/> object to produce a response from.</param> 808public static ProblemHttpResult Problem(ProblemDetails problemDetails) 819/// <param name="detail">The value for <see cref="ProblemDetails.Detail" />.</param> 820/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 821/// <param name="title">The value for <see cref="ProblemDetails.Title" />. Defaults to "One or more validation errors occurred."</param> 822/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 823/// <param name="extensions">The value for <see cref="ProblemDetails.Extensions" />.</param> 840/// <param name="detail">The value for <see cref="ProblemDetails.Detail" />.</param> 841/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 842/// <param name="title">The value for <see cref="ProblemDetails.Title" />. Defaults to "One or more validation errors occurred."</param> 843/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 844/// <param name="extensions">The value for <see cref="ProblemDetails.Extensions" />.</param> 872private static void CopyExtensions(IEnumerable<KeyValuePair<string, object?>>? extensions, ProblemDetails problemDetails)
Microsoft.AspNetCore.Mvc.Core (55)
ActionResultOfT.cs (1)
86if (Value is ProblemDetails problemDetails && problemDetails.Status != null)
ApiBehaviorOptions.cs (2)
72/// <see cref="ProblemDetails"/> instance (returned as the value for <see cref="ObjectResult"/>). 87/// instance where the <see cref="ObjectResult.Value"/> is <see cref="ProblemDetails"/>.
ApplicationModels\ApiBehaviorApplicationModelProvider.cs (1)
43var defaultErrorType = options.SuppressMapClientErrors ? typeof(void) : typeof(ProblemDetails);
ClientErrorData.cs (2)
16/// By default, this maps to <see cref="ProblemDetails.Type"/>. 24/// By default, this maps to <see cref="ProblemDetails.Title"/> and should not change
ControllerBase.cs (23)
1829/// Creates an <see cref="ObjectResult"/> that produces a <see cref="ProblemDetails"/> response. 1831/// <param name="statusCode">The value for <see cref="ProblemDetails.Status" />.</param> 1832/// <param name="detail">The value for <see cref="ProblemDetails.Detail" />.</param> 1833/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 1834/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 1835/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 1848/// Creates an <see cref="ObjectResult"/> that produces a <see cref="ProblemDetails"/> response. 1850/// <param name="statusCode">The value for <see cref="ProblemDetails.Status" />.</param> 1851/// <param name="detail">The value for <see cref="ProblemDetails.Detail" />.</param> 1852/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 1853/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 1854/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 1855/// <param name="extensions">The value for <see cref="ProblemDetails.Extensions" />.</param> 1866ProblemDetails problemDetails; 1942/// <param name="detail">The value for <see cref="ProblemDetails.Detail" />.</param> 1943/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 1945/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 1946/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 1966/// <param name="detail">The value for <see cref="ProblemDetails.Detail" />.</param> 1967/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 1969/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 1970/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 1973/// <param name="extensions">The value for <see cref="ProblemDetails.Extensions" />.</param>
Infrastructure\DefaultApiProblemDetailsWriter.cs (2)
56var problemDetails = _problemDetailsFactory.CreateProblemDetails( 75typeof(ProblemDetails),
Infrastructure\DefaultProblemDetailsFactory.cs (3)
38public override ProblemDetails CreateProblemDetails( 48var problemDetails = new ProblemDetails 95private void ApplyProblemDetailsDefaults(HttpContext httpContext, ProblemDetails problemDetails, int statusCode)
Infrastructure\ObjectResultExecutor.cs (1)
131if (result.Value is ProblemDetails)
Infrastructure\ProblemDetailsClientErrorFactory.cs (1)
17var problemDetails = _problemDetailsFactory.CreateProblemDetails(actionContext.HttpContext, clientError.StatusCode);
Infrastructure\ProblemDetailsFactory.cs (14)
10/// Factory to produce <see cref="ProblemDetails" /> and <see cref="ValidationProblemDetails" />. 15/// Creates a <see cref="ProblemDetails" /> instance that configures defaults based on values specified in <see cref="ApiBehaviorOptions" />. 18/// <param name="statusCode">The value for <see cref="ProblemDetails.Status"/>.</param> 19/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 20/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 21/// <param name="detail">The value for <see cref="ProblemDetails.Detail" />.</param> 22/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param> 23/// <returns>The <see cref="ProblemDetails"/> instance.</returns> 24public abstract ProblemDetails CreateProblemDetails( 37/// <param name="statusCode">The value for <see cref="ProblemDetails.Status"/>.</param> 38/// <param name="title">The value for <see cref="ProblemDetails.Title" />.</param> 39/// <param name="type">The value for <see cref="ProblemDetails.Type" />.</param> 40/// <param name="detail">The value for <see cref="ProblemDetails.Detail" />.</param> 41/// <param name="instance">The value for <see cref="ProblemDetails.Instance" />.</param>
ObjectResult.cs (1)
73if (Value is ProblemDetails details)
ProducesErrorResponseTypeAttribute.cs (1)
11/// client error type to be <see cref="ProblemDetails"/>, if mapping client errors (<see cref="ApiBehaviorOptions.ClientErrorMapping"/>)
Properties\AssemblyInfo.cs (1)
9[assembly: TypeForwardedTo(typeof(ProblemDetails))]
src\aspnetcore\src\Shared\ProblemDetails\ProblemDetailsDefaults.cs (1)
170public static void Apply(ProblemDetails problemDetails, int? statusCode)
ValidationProblemDetails.cs (1)
12/// A <see cref="ProblemDetails"/> for validation errors.
Microsoft.AspNetCore.Mvc.Formatters.Xml (5)
ProblemDetailsWrapper.cs (3)
12/// Wrapper class for <see cref="Mvc.ProblemDetails"/> to enable it to be serialized by the xml formatters. 35public ProblemDetailsWrapper(ProblemDetails problemDetails) 40internal ProblemDetails ProblemDetails { get; }
ProblemDetailsWrapperProviderFactory.cs (2)
10if (context.DeclaredType == typeof(ProblemDetails)) 12return new WrapperProvider(typeof(ProblemDetailsWrapper), p => new ProblemDetailsWrapper((ProblemDetails)p!));
Microsoft.AspNetCore.Routing (4)
Builder\OpenApiRouteHandlerBuilderExtensions.cs (4)
95/// Adds an <see cref="IProducesResponseTypeMetadata"/> with a <see cref="ProblemDetails"/> type 109return Produces(builder, statusCode, typeof(ProblemDetails), contentType); 113/// Adds an <see cref="IProducesResponseTypeMetadata"/> with a <see cref="ProblemDetails"/> type 130return builder.WithMetadata(new ProducesResponseTypeMetadata(statusCode, typeof(ProblemDetails), [contentType]));