September 2002
Intermediate to advanced
544 pages
13h 6m
English
At a minimum, an error document should tell the user what went wrong, provide a link to your site’s home page, and send an email to the site administrator. Errors are logged by the server, but it’s still polite to give users the opportunity to tell you what went wrong when they tried to view your page.
For example, Listing 23.1 shows what a basic error document for 404 Not Found errors could be.
1: <html> 2: <head> 3: <title>Document Not Found</title> 4: </head> 5: <body> 6: <h1>Document Not Found</h1> 7: <p>The document you requested is no longer available at the location that 8: you specified. You can return to our <a href="/index.html">home ... |
Read now
Unlock full access