Site Update: I have decided to change the look and feel of the site and hope you like it! I have also been working in the background on setting up the membership areas as previously announced | The free membership section will be launching soon, hopefully by mid March. With the VIP Premium section going live in April 2010 - Watch this space for further announcements!

21st
NOV

Understanding Web Statistics Part III – Understanding Server Response Codes

Posted by Zulfikar under Statistics

Response codes (also called status codes) are the coded results of a server’s attempt to understand and satisfy a request. Web server responses indicate whether a Web object (Web page, graphics file, CGI script, etc.) was successfully retrieved or executed and, if not, the reason for the unsuccessful result. Unsuccessful results are also referred to as server error codes.

Log files record these codes, and the Visitor Statistics tool includes a report on them.

The following codes are some of the most common responses:

* Code 200 – OK: The request was fulfilled. The Web page was successfully downloaded without error.

Notes: In the strictest sense this not an error but a confirmation that things are working just fine.

* Code 401 – Unauthorized: The code indicates that users have tried to access pages that are restricted to a private network or IP address.

* Code 404 – Not Found: The server has not found anything matching the URL given, which can indicate broken links in the Website due to the removal of a Web page or other resource. Alternatively, the response may indicate spelling errors in the URL.

Notes: This can be and is a very annoying error both for the site owner and the visitors. As a site owner you stand to loose your readers as well as PR link juice. For readers who are repeat visitors this can be very frustrating and more so if the page/post they are trying to access has very important information.

Tip: It is a good idea to code your 404 page to redirect your visitors to the main/home page should there be an error, be it a site error or a mistyped or misspelled URL. – If there is indeed a site error and you are aware of it then its a good idea to let your readers know and reassure them that you are doing everything possible to resolve it.

* Code 403- Forbidden: The request is for something forbidden. The code indicates that users have tried to access pages that require user authorization, such as password-protected administration areas or members areas.

Notes: If there are no pages/post requiring such authentication then you need to check your site for unwanted scripts and to avoid reader frustration.

* Code 500 – Internal Error: The request failed. The server encountered an unexpected condition which prevented it from fulfilling the request. This code often indicates a script error.

Note: 9 times out of 10 this error is related to the .htaccess. It’s a good idea to check your site and analyse the .htaccess to make sure it only contains the codes it is supposed to. If you are not familiar with the .htaccess codes, renaming the file and generating a fresh (if your site script settings are capable) one usually helps resolve the problem.

If all else fails, consult an expert.

More readings:

If not already done so, read Understanding website statistics part I and Understanding website statistics part II

The w3.org site has more detailed information on all error codes – check out the list at http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html

Share your views and experience related to this topic, please leave a comment. If you have any tips, would love to hear them :)

Related posts:

  1. Understanding Web Statistics Part II – Visitor Activity!
  2. 7 Easy Steps To Understanding Web Statistics
  3. No More Excuses: Blogging Can Be THIS Easy

If you like this article please share it on stumbleUpon - thanks!

Reader's Comments

  1. Reza Winandar from Blogging Guide
    Twitter: rezawinandar
    |

    I think the 40 error page not found is usually happen when blogger change their permalink and it cause the visitor from search engine will not found the page because the permalink has changed. To solve this just use a page redirect plugin. I don’t know what its name but you can give a try on Wordpress plugin database or Google.

  2. laskavy
    Twitter: laskavy
    |

    Quite short but the most important in RC were said.
    .-= Read laskavy´s last blog post>> ..Интернет-реклама. Мифы и заблуждения =-.

    My ComLuv Profile

  3. Zulfikar
    Twitter: zulfnore
    |

    @Reza Winandar@Blogging Guide – Yes that’s correct. Either that or the page/post has been deleted. This often happens if the page/post was bookmarked somewhere or the search engines still hold a cached listing of the page.

  4. Zulfikar
    Twitter: zulfnore
    |

    @laskavy – Sometimes its good to be short and sweet, give the readers the oportunity to open up more by asking many relatd questions or actully inputing their findings ;)

  5. Matt from Scarface T-Shirts |

    really great list, i don’t think i’ve found all these put together on one page. thanks, it is very helpful and already in my bookmarks.

  6. john from forbrukslån |

    How does a redirect to the homepage after 404 affect google SERP results? I am kinda confused about this issue, and some seem to say that the best thing is to have a seperate 404 page, tell that something is up, and from there link to your homepage and other pages you want to rank on. Right or wrong? (Or is it impossible to know for sure)

  7. blog-admin
    Twitter: zulfnore
    |

    @John – A redirect to the home page helps in distributing the PR to one of the most important pages of your site. One of the reason someone lands on 404 page is either because they misstyped a link or the page/post has been deleted, and if that particualr post/page had some PR attached to it then it is transfered to the linking page – i.e the Home page.

    You can set the 404 page to point to other pages on your site – i.e the sitemap with links on all the pages you have, but this in turn dilutes the PR juice across many pages and is therefore of very little value to the entire site. I believe it is best to distribute link juice from the main page to the internal pages instead of from within the internal pages themselves – if an internal page has good PR then its ok to link to other internal pages, but if the PR is low then its best fed to the main page which usually holds the highest PR and then distributed to other internal pages.

    I hope that makes some sense.

  8. blog-admin
    Twitter: zulfnore
    |

    @Matt – glad to be of service and thanks for the bookmark :)

  9. Samuel Sawyer from overcome social anxiety |

    Thanks, I did not know that 500 error is related with the .htaccess file. I think I still have a lot of things to learn about servers and browsing the internet.
    Thanks.

    Comment Tags: great advice
  10. Zulfikar
    Twitter: zulfnore
    |

    @Samuel Sawyer@overcome social anxiety – You are welcome Samuel. The internet is a vast ocean and we shall always be learning new things as it continues to evolve, so you are not alone :)
    .-= Read Zulfikar´s last blog post>> ..Google Caffeine And The New Ranking Factors =-.

    My ComLuv Profile

  11. dave from home improvements |

    Great stuff, the only error I know how to control is the 404 one, and I try to make that page have many links pointing back to the site. Never had a clue though about the rest of the errors you speak of…good stuff to know :)
    .-= Read dave@home improvements´s last blog post>> ..How To Fix a Leaking Faucet =-.

    My ComLuv Profile

  12. Nick from 50X-FIGHT BOREDOM |

    One of my blogs keep receiving a lot of spam. The spam is like “we]g[4g][g]g[]30ri3290″
    I don’t like Akismet plugin because of the registration with wordpress API.

  13. Zulfikar
    Twitter: zulfnore
    |

    @Nick@50X-FIGHT BOREDOM – Akismet is probably on of the best spam fighting plugin there is and the registration at Wordpress.com is well worth it. In addition to Akismet you can use other plugins in conjunction to help combat spam.

    The ones I use are:
    NoSpamNX available at http://www.svenkubiak.de/nospamnx-en/
    SI Captcha Anti-Spam which is available at http://www.642weather.com/weather/scripts-wordpress-captcha.php

    By combining these plugins with Akismet I have managed to cut down on spam from around 30-40 to 2-5 per week. At one time it was as bad as 50-60 spam comments a day!

    I highly recommend using all 3 for maximum protection.
    .-= Read Zulfikar´s last blog post>> ..WordPress 2.9 – The Finest Of The Bunch! =-.

    My ComLuv Profile

  14. Daniel from Property Development Finance |

    These codes are invaluable to web developers such as myself. I am finding that a lot of browsers are now preffering to show their own messages instead of the codes. This is really annoying as by having the codes I can understand what the problem is.

  15. dostanamehfil |

    Understanding Web Statistics Part III – Understanding Server Response Codes http://bit.ly/7eu2Ti

  16. Zulfikar Nore |

    RT @BlogInstaller Understanding Web Statistics Part III – Understanding Server Response Codes | Wordpress Blog Inst… http://retwt.me/1KAsn

  17. dostanamehfil |

    RT @BlogInstaller Understanding Web Statistics Part III – Understanding Server Response Codes | W.. http://retwt.me/1KAsn

Get Adobe Flash playerPlugin by wpburn.com wordpress themes

wp