nodemcu-httpserver icon indicating copy to clipboard operation
nodemcu-httpserver copied to clipboard

Allow static or dynamic error pages

Open HHHartmann opened this issue 8 years ago • 1 comments

The idea is to alter the filename of the request and remember, that it is an error url. and then reprocess it. I am afraid this will require some refactoring I would suggest to use a new name scheme for error pages to allow displaying them in unauthorized mode and prevent calling them directly like error/404.* for a 404 error and the like.

What do you think?

HHHartmann avatar Mar 15 '17 13:03 HHHartmann

Customizable error pages seem like overkill for such a simple server but I'm not strongly opposed. Storing them under "error/404.html" as you suggest sounds like the way to go to me.

marcoskirsch avatar Jun 01 '17 03:06 marcoskirsch