IUnsupportedVersionStatusCode Interface
Used to define the type of status code that should be returned if a request is made with an api-version media type parameter that the endpoint does not support.
When calling SelectEndpointsByNamespaceAndMediaTypeVersion(this IMvcBuilder, HttpStatusCode) a default implementation of this interface is registered as a singleton causing these requests to fail with the given status code.
public interface IUnsupportedVersionStatusCodeProperties
Section titled “Properties”IUnsupportedVersionStatusCode.Value Property
Section titled “IUnsupportedVersionStatusCode.Value Property”The status code that should be returned if the requested endpoint cannot satisfy any of the api-version parameters present in the “Accept”-header.
System.Net.HttpStatusCode Value { get; }Property Value
Section titled “Property Value”Was this page helpful?Thanks for your feedback!