Just a small reminder: if you are creating a customized page for a specific HTTP error, be sure to include code in the page to set the response error code appropriately.
For reference, see this and this.
For example, if you are using ASP.Net and are creating a custom 404 page, add this line to your Page_Load method:
Response.StatusCode = 404;