format CONNECT error correctly