the.bay.news

Http.server: custom not found (404.html) page handling

Discussions on Python.org
Http.server: custom not found (404.html) page handling
I’ve been using http module via CLI for serving static website (local development). For handling HTTP 404, I see our(python) http server has standard template. However, on my ssg, I have custom not found page - 404.html and if that exists I wanted that to be rendered implicitly. This behaviour can be achieved in e.g. serve. setup: http(in CPython, stdlib) - standard template, even though I have 404.html: serve (in NodeJS, by vercel) - it renders my 404.html: I wanted to have communi...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.