mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 09:08:20 -04:00
17 lines
473 B
C++
17 lines
473 B
C++
#include "errorcontroller.h"
|
|
#include "library_window.h" //get libraries
|
|
|
|
#include "template.h"
|
|
#include "../static.h"
|
|
|
|
extern LibraryWindow * mw;
|
|
|
|
ErrorController::ErrorController(int errorCode)
|
|
:error(errorCode)
|
|
{}
|
|
|
|
void ErrorController::service(HttpRequest& request, HttpResponse& response)
|
|
{
|
|
response.setStatus(300,"redirect");
|
|
response.write("<html> <head> <meta http-equiv=\"refresh\" content=\"0; URL=/\"> </head> <body> </body> </html>", true);
|
|
} |