Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Last revision Both sides next revision
tutorials:errorpage [2011/04/30 13:32]
clemens created
tutorials:errorpage [2011/10/04 18:15]
memnon Fix ToC
Line 4: Line 4:
 ===== Contents ===== ===== Contents =====
  
-  * [[#intro|Introduction]] +  * [[#​Introduction]] 
-  * [[#why|Why create a custom error page?]] +  * [[#Why create a custom error page?]] 
-  * [[#how|How to implement your custom error page]]+  * [[#How to implement your custom error page]]
  
 \\ \\
  
-===== [[|Introduction]] =====+===== Introduction =====
  
 The HTTP protocol, which is used to retrieve documents (usually web pages) from the internet for display in a web browser, provides a number of [[http://​offline.home.cern.ch/​offline/​web/​http_error_codes.html| standard error codes]] to indicate conditions or status relative to the process. The most widely known of these is the notorious code 404 - "File not found."​ This error may occur for a number of reasons, but most commonly it indicates a broken link. Perhaps there is a typographical error in your html, or maybe the document was moved to a new location without the needed changes made to the referring link. What happens at this point is that the web browser asking for the missing document receives a special error message web page instead. This page is usually provided by the server, but may in some instances be generated by the browser. The error page may be rather generic, or it may be customized for the originating site. The HTTP protocol, which is used to retrieve documents (usually web pages) from the internet for display in a web browser, provides a number of [[http://​offline.home.cern.ch/​offline/​web/​http_error_codes.html| standard error codes]] to indicate conditions or status relative to the process. The most widely known of these is the notorious code 404 - "File not found."​ This error may occur for a number of reasons, but most commonly it indicates a broken link. Perhaps there is a typographical error in your html, or maybe the document was moved to a new location without the needed changes made to the referring link. What happens at this point is that the web browser asking for the missing document receives a special error message web page instead. This page is usually provided by the server, but may in some instances be generated by the browser. The error page may be rather generic, or it may be customized for the originating site.
Line 23: Line 23:
   * And let's face it - most error pages are pretty dull. The 404 page in particular can be frustrating. So much so, in fact, that people have even written spiteful [[http://​www.ovff.org/​pegasus/​songs/​404-not-found.html|songs]] about it! So you may want to provide your viewer, who has apparently gotten himself into a frustrating situation, with a bit of comic relief. Here is my favorite example of [[http://​www.homestarrunner.com/​404|that]].   * And let's face it - most error pages are pretty dull. The 404 page in particular can be frustrating. So much so, in fact, that people have even written spiteful [[http://​www.ovff.org/​pegasus/​songs/​404-not-found.html|songs]] about it! So you may want to provide your viewer, who has apparently gotten himself into a frustrating situation, with a bit of comic relief. Here is my favorite example of [[http://​www.homestarrunner.com/​404|that]].
  
-===== [[|How to implement your custom error page]] =====+===== How to implement your custom error page =====
  
 Now that you've decided you want to create a custom error page, you probably want to know how to do it. In fact, on SDF this turns out to be fairly easy. There are two basic steps involved: Now that you've decided you want to create a custom error page, you probably want to know how to do it. In fact, on SDF this turns out to be fairly easy. There are two basic steps involved:
Line 57: Line 57:
  
 And that is pretty much all there is to it! And that is pretty much all there is to it!
 +