Our architecture is pretty classic : back and front app in typescript. When an error occurred, the server answer with other than HTTP 200 Status Code. We used to display an error page with some info that help support to understand the error and have enough inputs to looks after logs. Before effect, we pull up the stack trace to the server response and display it on the client. Now we make a catchAll and return an InternalServerError.
Every stuff tried only show me this error, never get the request.
The real error is in the server logs. We don't want to display a technical error to user.
From a technical point of view, the client add an uuid header in the requests that help support to find which case to analyze in all logs.
In first approach, I try to add stuff around HttpClient layers like RequestInit to add the uuid header, and in case of errors, look at the request that produce this error response, and, at least, display the requested url, better should be the uuid.