101 |
|
cout << "Content-Type: text/html; charset=UTF-8\r\n\r\n" << selection |
102 |
|
<< "\r\n"; |
103 |
|
} |
104 |
< |
else cout << "Status: 404\r\n\r\n"; |
104 |
> |
else |
105 |
> |
{ |
106 |
> |
cout << "Status: 404\r\nContent-Type: text/html; charset=ISO-8859-1\r\n" |
107 |
> |
<< "\r\n<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n" |
108 |
> |
<< "<html><head>\n<title>404 Not Found</title>\n</head><body>\n" |
109 |
> |
<< "<h1>Not Found</h1>\n<p>The requested URL " |
110 |
> |
<< env.get("PATH_INFO") << " was not found on this server.</p>\n" |
111 |
> |
<< "<hr />\n" << env.get("SERVER_SIGNATURE") << "</body></html>\n"; |
112 |
> |
} |
113 |
|
} |