Ejemplo n.º 1
0
 public void RespondNotFoundFailure(string file)
 {
     HttpHelper.WriteHttpHeader("HTTP/1.1 404 Not Found", _stream);
     _logger.Information(this.GetType(), "File not found: {0}", file);
 }
Ejemplo n.º 2
0
 public void RespondMimeTypeFailure(string file)
 {
     HttpHelper.WriteHttpHeader("415 Unsupported Media Type", _stream);
     _logger.Warning(this.GetType(), "File extension not found MimeTypes.config: {0}", file);
 }