Custom HTTP error pages tip

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;

posted @ Wednesday, December 14, 2005 12:23 PM

Comments have been closed on this topic.