Forum

Customer error page

Fred
10 November 2016, 13:18
Hi Hugo,

Can I customise the hiawatha error page?
For example I want to keep the original message but would like a different backgroud and txt asking to contact webmaster.

I looked in the /etc/hiawatha and I could find any template so I assume the error are generated dynamicly..

Fred
Hugo Leisink
10 November 2016, 22:20
Copy & paste the original error message into a .html file and change what you want. Use the ErrorHandler option to use the new .html error message.
Fred
11 November 2016, 14:40
Hi Hugo,

Where can I get a list of the error message and where do I put the .html
Hugo Leisink
12 November 2016, 11:53
The manual page shows that the ErrorHandler can be set for 401, 403, 404, 501 or 503 errors.

The error message for each code can be found in src/http.c, starting at line 764.
This topic has been closed.