I just upgraded to Microsoft.AspNet.OData v6.0.0, and started encountering 406 status codes. I was able to fix most of them by changing using System.Web.Http.OData;
to using System.Web.OData;
, however I'm still having issues with custom error responses.
When an authorization/exception filter sets the response to my error response type, OData appears to convert whatever response I set into an empty 406 response.
How do I prevent this from happening so my filters can return custom error responses?