Getting a custom error page to return the correct header code (asp/IIS)

Discussion in 'Site & Server Administration' started by Yosser, Mar 10, 2009.

  1. #1
    I'm working on a site that is hosted on a server running IIS, I don't have access to the IIS admin.

    I'm keen to implement custom error pages, but I also want to ensure they return the appropriate server header code.

    I've attempted to implement this by inserting the following code (for a 404 for example) in the page (asp):

    <%
    Response.status = "404 Not Found"
    %>

    My problem is this: when I check the custom page with online server header checker tools some return the correct code and some return a 403 forbidden error.

    Is that a problem with the tools?

    For example, http://www.seoconsultants.com/tools/headers.asp works but http://tools.seobook.com/server-header-checker/# doesn't ???
     
    Yosser, Mar 10, 2009 IP