Asp.net – Custom error pages for status codes in Razor Pages
Previously, I was able to make API server returning custom api response for errors. I had to override a lot of defaults in .NET to return json, such as: global exception middleware with UseMiddleware, build status code json with a…