The 3 Most Common HTTP Error Codes
When checking your HTTP header code, usually you want to get HTTP response code 200 or 301.
The 200 code indicates that the page is operating correctly.
The 301 code means that there’s a permanent redirect on this page. Visiting the URL will result in you bring redirected (successfully) to another page.
Any other codes returned are likely negative for user experience (UX) or search engine optimization (SEO).
The only exception is if your intention was to have a specific error code in place (as you would for password protected pages).
If that’s not ringing any bells, other codes are problems that you need to resolve.
The 3 Most Common HTTP Error Codes
1. 302 Found / Moved Temporarily
This code will be found if you have a page that’s only accessible to logged-in users. It doesn’t pass any SEO value, so if you have links pointing to those pages, you won’t benefit from the transfer of their PageRank.
In HTML, 302 redirects can be created by adding the following line in the <head>
<meta HTTP-EQUIV=”REFRESH” content=”0; url=http://www.example.com/index.html”>
A lot of people that want to do good SEO redirects start from the .htaccess file using RewriteRule, but they forget to add the [R=301] code at the end of the line. This usually should be [R=301,L].
RewriteRule ^test.html$ /other-test-page.html [R=301,L]
2. 404 Not Found
Almost in every website that is continuously improving will get 404 HTTP Header errors.
To easily detect 404 error codes, add your website in Google Webmaster Tools and you will see in time those pages.
To check fast for 404 Not Found pages, just submit your URL to our HTTP Header Checker tool.
3. 500 Internal Server Error
Most of the times this error is caused by two things:
- A bad line of code in .htaccess file. Use # in front of the lines to comment the rules so you can see exactly what line is wrong (any wrong letter used in .htaccess file can give 500 Internal Server Error).
- Memory limit in the server—happens if you have a complex script or a lot of visitors access the script and the server doesn’t have enough memory allocated.
If you want to know about other HTTP Header Error Codes, leave a comment bellow and I will update this post.
Comments
Leave a Comment