Add response object to protocol errors to facilitate improved logging