In my .NET Core 5 Web API project, Throwing a custom exception, causes 415 (Unsupported Media Type) response type! The code runs without error when I don\'t throw the exception.