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!"); | |
} | |
} | |
} |