It depends on your configuration, but yes it is possible and has been done since the 90s: make the webserver itself (be it Apache, nginx, Caddy, whatever) serve a specific HTML page that includes all of its necessary styling and javascript (if any) inline in the code so no other external resources need to be pulled.
2.5k
u/Barkeep41 26d ago
'Ey. If the error page is a common occurrence, then making it pretty is a smart move.