private OrientdbResponse <Stream> ReturnConnectionStatus(HttpWebRequest request, byte[] data, IRequestConfiguration requestSpecificConfig = null) { string method = request.Method; string path = request.RequestUri.ToString(); OrientdbResponse <Stream> cs = OrientdbResponse <Stream> .Create(ConnectionSettings, _statusCode, method, path, data); cs.Response = new MemoryStream(_fixedResultBytes); if (ConnectionSettings.ConnectionStatusHandler != null) { ConnectionSettings.ConnectionStatusHandler(cs); } if (RecordRequests) { Requests.Add(Tuple.Create(method, request.RequestUri, data)); } return(cs); }