What Response Codes Are Used On Your Website?
Posted by adminJan 18
Response codes impact every page, image and file on your website.
A visiting search engine bot figures out what to do based on those codes. Incorrect response codes can cause:
- Indexation problems;
- Duplicate content;
- Site performance problems;
- All manner of other site higgledy-piggledy.
- Enterprise SEO is all about big, site-wide wins.
Response codes are just that: They’re easy to set up. They have a broad impact. Seems like a slam-dunk to me. And yet, when I checked 1,000+ large sites only 30% got their response codes right.
There are three response codes you want to know the most about:
- 404. Page not found. If a file simply doesn’t exist, your server should deliver a 404 status. You can use a 410 response if you want Googlebot to retry the bad URL less frequently.
- 301. Page permanently moved. If you’ve permanently removed one URL and replaced it with another, use a 301.
- 302. Page temporarily moved. If you’ve removed something and will be putting it back, use a 302.
If a browser or bot visits your site and attempts to load a file that does not exist, it should get a 404 response. You can get tricky with redirection if you want to try to preserve link authority of a deleted page. But the default answer for a missing page should be 404. Many sites deliver 302 temporary redirect, 301 permanent redirect or, even worse, 200 ‘OK’ response codes. This leads to massive site duplication and terrible crawl efficiency. Visiting bots spend their time crawling worthless content.
Possible causes and solutions:
- .NET loves to take over control of 40x errors, replacing them with a 302 redirect to a friendly error page. That’s nice. But totally wrong. Turn off .NET’s 404 handling and let IIS take over, instead. You can still have a friendly error page.
- A misguided developer may have thought that redirecting all ‘not found’ errors to your home page helps users. It doesn’t. It’s totally confusing, like going into a revolving door and coming out at some random location. Provide a friendly 404 page that explains something went wrong and provides options.
- Someone may have set up a redirect page that uses a javascript or meta refresh to then reroute visitors to a ‘best guess’ page. See the previous item—same problem.
- If your site’s on PHP, it may be using header(‘location: /’); die();. Try something like header(“HTTP/1.1 404 Not Found”);, instead.
- Your site just delivers a 200 ‘OK’ code no matter what. I have no idea why you’d do this, but I’ve seen 100-200 sites that do. Change it.
Redirects are a powerful SEO tool. They let you consolidate authority in the right places. But you have to do them right.
A 301 code tells a visiting bot or browser that the page it’s loading is gone, forever, and the URL of the replacement page. Use this to consolidate authority and resolve basic canonicalization issues.
A visiting search bot will transfer some of the authority of the old URL to the new one. It will also eventually stop visiting the old URL, replacing it with the new one.
A 302 code tells a visiting bot or browser the page it’s loading is gone, but only temporarily. A visiting bot will keep returning to the old URL, checking to see if the page is back.

No comments