I have a ASP.NET Core 2.1 (API) application running in Azure Web App.
My application errors follow a standard json structure. When there is an error (for example a 500) in IIS, it returns a xhtml page with the description of the error.
How can I set Azure Web App, or my application, so that on IIS errors, it returns a json string defined by me.
Thanks in advance.