sbsdevelop
sbsdevelop
I have the requirement to return a JSON payload for each error / exception that is returned from a .net core 2.0 API. I thought UseExceptionHandler() and UseStatusCodePagesWithReExecute() would be...
Shoot - I added this: ``` app.UseExceptionHandler( new ExceptionHandlerOptions { ExceptionHandler = async context => { context.Response.ContentType = "text/plain"; await context.Response.WriteAsync( "Welcome to the error page." ); } } );...
Thanks for the clarification :^) Cheers!