How can I test the custom page I made for the 500 error code?

Viewed 29

i am developing website with .net 6 and i made custom error pages for 404-500 pages and then app.UseStatusCodePagesWithRedirects("/{0}"); I did the error management with the code. When I tested for 404 it worked successfully, but I could not test if it works for 500. How can I make sure it works for 500?

strong text

0 Answers
Related