How i will set xml data request not acceptable in API dotnet?
Go to the Program.cs file and set its same as below: var builder = WebApplication.CreateBuilder(args); // Add services to the container. builder.Services.AddControllers(option => { option.ReturnHttpNotAcceptabl...