A simple to use generator for static pages with errors to replace the default error pages that come with any web server like Nginx or Apache.
Then an example of starting the tool:
./httpgen
The command result is located in the sites/ directory.
If you would like to add your own static pages to generate, edit the src/other.json file and add to it:
{
"code" : "903",
"title": "HTTP Error Code",
"desc" : "This is a example http error code description.",
"icon" : "fas fa-info-circle blue"
}
Description:
code
- specifies the response status codes (eg. 400, 404, 501)title
- specifies the short title of status code, related to thecode
key (eg. "Not Found", "Bad Gateway")desc
- determines the possible reason for the error (eg. "The web server is currently undergoing some maintenance")icon
- sets a small icon from font-awesome for error code (eg. "fas fa-info-circle green", "fas fa-info-circle red")