Hour 23. Creating Custom Error Documents

What can make your Web site more user friendly when something goes wrong? The answer is displaying a custom error document. When an error occurs, the Web server usually displays a default error document. Most Web servers allow you to specify that custom documents be substituted for the default ones. In this hour, I’ll discuss how to configure your Web server to use custom error documents as well as how to write CGI scripts that display them.

In this hour, you’ll learn

  • What exactly error documents are

  • How to set up your Web site to use custom error documents

  • What custom error documents should contain

Get Sams Teach Yourself CGI in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.