We are using some custom model binders for our .Net Core api and have some logic in the model binder which should sometimes result in a 403 being returned by our api.
I am aware that you can use Mvc.ModelBinding.ModelBindingResult.Failed() to return a 400 when model binding fails, however if it is due to fail as ar result of an attempt at Unauthorized access then we need to return a 403, ideally with a custom message.