Q&A

Q1: Can I create custom error documents for errors other than 401 and 404?
A1: Yes, but it’s not as important to do so as it is for the two most common errors. One is 403 Access Denied, which is returned when the browser doesn’t have permission to access the requested file and is usually caused by a file permission problem. The other is 500 Server Error, which is almost always the result of a bug in a CGI script that prevents it from sending the appropriate header information.

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.