Skip to content
Documentation

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 IUnsupportedVersionStatusCode

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; }

System.Net.HttpStatusCode

© 2026 Volue.Version v0.6.38017 November 2026