public void ProcessRequest(HttpContext context) { try { var responseTypeString = context.Request.QueryString["FileType"] ?? string.Empty; var responseType = Utilities.Extensions.ResponseTypeExtensions.FromString(responseTypeString); // Do some work var response = ""; // This variable is filled with the response to write to the context context.Response.ContentType = "text/plain"; context.Response.Write(response); } catch (Exception e)