add request debug information when the response from the remote server is an error