Hi,
Maybe I'm missing something obvious, but I can't find an example of getting mustAccept to behave according to best practices when the Accept header does not match any of the specified content types, which is to return 406. The implementation skips the pipeline in that case, which in my case will result in a 404 because that's the reasonable default.
How can I use mustAccept in a way that allows me to return a 406 if it fails?
Hi,
Maybe I'm missing something obvious, but I can't find an example of getting
mustAcceptto behave according to best practices when theAcceptheader does not match any of the specified content types, which is to return406. The implementation skips the pipeline in that case, which in my case will result in a404because that's the reasonable default.How can I use
mustAcceptin a way that allows me to return a406if it fails?