fix(chat): simplify error messages when reporting them to the enduser
Refs CODY-5032 improve error messages
Up to this point, we were replying with a full-blown HTML file all inside of an error box. We now simplify the error message to make it easier for users to understand why they get a forbidden message from Cloudflare when they have a VPN enabled. Currently, the plan is to simplify the error messages to the end user while showing the unmodified error within the verbose debug and tracing recording.
I also removed the URL with the endpoint since this was something that was flagged in the ticket.
Test plan
Use a VPN and try to make a chat. Notice the difference in reply from receiving a full-blown html page inside an error box to getting a simple error message.
Have a look at the clientError.ts and clientError.test.ts test case files where
you see the different transforms and error messages this pull request addresses.
Examples of errors that we would show to the user: