Welcome to WebmasterWorld Guest from 107.20.72.188

Forum Moderators: phranque

Message Too Old, No Replies

404 vs. 403, when syntax is incorrect vs. page gone

Which error codes to use? HTTP error 400 403 404 405.

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

Junior Member

10+ Year Member

joined:Aug 9, 2003
posts: 118
votes: 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');

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

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14621
votes: 60


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

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members