LunpaCMS comes with three standard error pages that you can configure or replace to use in place of default error messages sent by the server:
In order for these pages to be called properly during these errors, you need to add these lines to the <directory> section in the httpd.conf file of your Apache installation:
ErrorDocument 400 /dsanv.cgim?template=error_400&http_status=400
ErrorDocument 403 /dsanv.cgim?template=error_403&http_status=403
ErrorDocument 404 /dsanv.cgim?template=error_404&http_status=404
http_status=400/3/4 is a vital part of the code, since otherwise you would be responding to an error with a 200 status when the template was displayed.
Copyright © 2018 Peregrine Computer Consultants Corp. All rights reserved.
About Lunpa, our mascot. Her mother was a hamster and her father was an ill-tempered Chilean M00se. Oddly, neither smelt of elderberries.
The artist is Jennifer Lomax.