Internal Server Error 500 is not returned in Http Response using Kestrel Web Server (White Screen of Death) AspNet 6

Question: How to handle status code 500 when the application is in production. This seemingly is very annoying error when the Application is deployed in production and a 500 Server Error happens, the User sees a White Screen of Death. How to solve this problem? I need to handle Response code 500 so the application can route to an error page. This does not seem to be the case, only Status Code 404 and others seem to be handled by the appliction.


Do you know someone who can answer this question?

If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.

© 2023 - ErnesTech LLC- Privacy