Sanitize error responses in UI REST API Log full exception details server-side and return only the exception message to HTTP clients instead of the full stack trace.