blob: 010c2422a53ddac32c47f579ebb1d5733e59342a [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!");
}
}
}