homepage Welcome to WebmasterWorld Guest from 54.197.147.90
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
404 vs. 403, when syntax is incorrect vs. page gone
Which error codes to use? HTTP error 400 403 404 405.
brycen




msg:3750627
 5:59 pm on Sep 23, 2008 (gmt 0)

For an error result, I'd like to confirm if I'm using error codes correctly.

If the supplied URL is never loadable, I'm returning 403, and hoping that the robots won't reload the page ever.

If the page won't load at the moment, but might load later, I'm returning 404.

The two question marks are:
1) Is 404 a good code if my program crashed (but might work later)? Is there any code that implies a more temporary failure to a search engine?

2) If there's a cgi parameter parsing error (e.g. foo?a=one&b=invalid), is 403 enough to convince the search engines to remove the URL from their indexes?

In perl: $q=new CGI; $q->header('-status' => '403 Invalid CGI Parameters');

 

bill




msg:3759540
 8:58 am on Oct 6, 2008 (gmt 0)

Just for reference all of the error codes are explained here: Status Code Definitions [w3.org]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved