public virtual void SendSyncSLAErrorResponse(IHttpRequest request, IHttpResponse response, HystrixEventType hystrixEvent) { Type responseType = EndpointHost.Config.MetadataMap[ServicePath].GetResponseTypeByOpName(request.OperationName); var errorResponse = ErrorUtils.CreateSLAErrorResponse(hystrixEvent, responseType); response.WriteToResponse(request, errorResponse); }