Update ProxyError class to construct error message properly