Simple utility that creates error pages for nginx.
- HTML 55.2%
- JavaScript 44.8%
| .gitignore | ||
| errors.json | ||
| index.html | ||
| index.mjs | ||
| README.md | ||
Extramly simple error page generator
How to edit
index.html is the template file.
errors.json is the error message config. (You can set the messages to anything you want.)
There are special strings that are replaced on build:
- %ERROR_CODE% - Error code (400,500,...)
- %ERROR_MSG% - Error message (Unauthorized,Not Found,...)
How to use
Run index.mjs with any nodejs compatibe runtime.