blob: 5df8ae8f6108bcf2fe0927b4c09cc5882cad9630 [file] [log] [blame] [raw]
using System;
using System.Net;
namespace RemoteView.PageHandlers
{
class NotFoundPageHandler : AbstractPageHandler
{
/// <summary>
/// 404 error page, used when client requests and unexisting resource
/// </summary>
/// <param name="response"></param>
/// <param name="uri"></param>
/// <returns></returns>
public override byte[] handleRequest(HttpListenerResponse response, String[] uri)
{
response.StatusCode = 404;
return buildHTML("Page not found!");
}
}
}