ApiBehaviorOptions.ClientErrorMapping Property

Definition

Gets a map of HTTP status codes to ClientErrorData. Configured values are used to transform IClientErrorActionResult to an ObjectResult instance where the Value is ProblemDetails.

Use of this feature can be disabled by resetting SuppressMapClientErrors.

public:
 property System::Collections::Generic::IDictionary<int, Microsoft::AspNetCore::Mvc::ClientErrorData ^> ^ ClientErrorMapping { System::Collections::Generic::IDictionary<int, Microsoft::AspNetCore::Mvc::ClientErrorData ^> ^ get(); };
public System.Collections.Generic.IDictionary<int,Microsoft.AspNetCore.Mvc.ClientErrorData> ClientErrorMapping { get; }
member this.ClientErrorMapping : System.Collections.Generic.IDictionary<int, Microsoft.AspNetCore.Mvc.ClientErrorData>
Public ReadOnly Property ClientErrorMapping As IDictionary(Of Integer, ClientErrorData)

Property Value

Applies to