public HttpResponseMessage(HttpStatusCode statusCode) { if (NetEventSource.IsEnabled) NetEventSource.Enter(this, statusCode); if (((int)statusCode < 0) || ((int)statusCode > 999)) { throw new ArgumentOutOfRangeException(nameof(statusCode)); } _statusCode = statusCode; _version = HttpUtilities.DefaultResponseVersion; if (NetEventSource.IsEnabled) NetEventSource.Exit(this); }