ClearCanvas.ImageServer.Services.Streaming.ImageStreaming.WADORequestProcessor.SendError C# (CSharp) Method

SendError() private static method

Generates a http response for an error
private static SendError ( HttpStatusCode errorCode, HttpListenerContext context ) : void
errorCode HttpStatusCode
context System.Net.HttpListenerContext
return void
        private static void SendError(HttpStatusCode errorCode, HttpListenerContext context)
        {

            context.Response.StatusCode = (int)errorCode;
        }