What Is an Error Document?

Whenever you request a URL that no longer exists, or you enter the wrong username and password trying to view a page that is protected using basic authentication, you’re met with an error document. Most Web servers have default error documents for each type of error, and also allow the server administrator to configure things so that another document or CGI program can be called to override the default documents. The document in Figure 23.1 is the default document for a 404 Not Found error from the Apache server.

Figure 23.1. A typical document generated for a 404 Not Found error.

Internet Explorer, in a bid to be ...

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.