« Previous Next »

Thread: Error status description inserted into generated content

Last post 01-04-2009 11:42 AM by xml.net. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 01-03-2009, 11:34 PM

    • xml.net
    • Not Ranked
    • Joined on 01-01-2009, 8:59 PM
    • Posts 8

    Error status description inserted into generated content

    I return "410 Gone" status for some products that were permanently removed.

    Looks like IIS inserts some default status description into the dynamically generated content before HTML tag like this:

    The page you requested was removed.<html 

    Is there any way to stop it inserting "The page you requested was removed."?

     

     

  • 01-04-2009, 8:43 AM In reply to

    Re: Error status description inserted into generated content

     USe custom error pages

    http://blogs.iis.net/rakkimk/archive/2008/10/03/iis7-enabling-custom-error-pages.aspx

  • 01-04-2009, 11:42 AM In reply to

    • xml.net
    • Not Ranked
    • Joined on 01-01-2009, 8:59 PM
    • Posts 8

    Re: Error status description inserted into generated content

    The page already contains all the necessary information about the error.

    Using custom error pages is not an option here. 

    The reason I return 410, not 200 is to tell search engines to remove the URL. Giving them 404 isn't really working as many of them come back later pounding on it again and again. Hopefully 410 will be enough to stop it. :-)

Page 1 of 1 (3 items)
Microsoft Communities