The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. No Search Results Found - Should this return status code 404?

    No Search Results Found - Should this return status code 404?

    Technical SEO Issues
    3 3 5.1k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • WEB-IRS
      WEB-IRS last edited by

      A question came up today on how to correctly serve the right status code on pages where no search results are found.

      I did a couple searches on some major eccomerce and news sites and they were ALL serving status code 200 for No Search Results Found

      http://www.zappos.com/dsfasdgasdgadsg

      http://www.amazon.com/s/ref=nb_sb_noss?url=search-alias%3Daps&field-keywords=sdafasdklgjasdklgjsjdjkl

      http://www.ebay.com/sch/i.html?_trksid=p5197.m570.l1313&_nkw=dfjakljgdkslagklasd&_sacat=0

      http://www.cnn.com/search/?query=sdgadgdsagas&x=0&y=0&primaryType=mixed&sortBy=date&intl=false

      http://www.seomoz.org/pages/search_results?q=sdagasdgasdgasg

      I thought I read somewhere were it was recommended to serve a status code 404 on these types of pages.  Based on what I found above, all sites were serving a 200, so it appears this may not be the best practice.

      Any thoughts?

      1 Reply Last reply Reply Quote 0
      • donford
        donford last edited by

        404 would make sense only if we were referring to what you were searching for. Basically 404 says this page is not found, but could be found again later...

        In this sense we are talking about the webpage not the product being searched for, which is what response codes are all about. So a 200 response would be correct, the page is there, the results are null.

        Does that make sense?

        1 Reply Last reply Reply Quote 1
        • bradkrussell
          bradkrussell last edited by

          Hi,

          Those sites are correctly serving a 200 page.

          Think of it this way - if you were searching for 'sdagasdgasdgasg' in SEOmoz (as in above URL), this term is not found yet on any page on site. But, it may be contained on a page that is published in the future (highly unlikely for that term I know, but you get what I mean). Hence they serve a 200 page.

          In terms of usability, if you were on a site and you searched for something and were presented with a generic 404 page, you'd probably think that something had gone amiss with the search functionality. However, if you were presented with a 200 page with "Sorry, no results found" you would be more likely to assume the search functionality had in fact worked, there was just nothing to return.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Help: Blog post translations resulting in 404 Not Found?
            Alick300
            Alick300
            0
            4
            80

          • 422 vs 404 Status Codes
            AfroSEO
            AfroSEO
            0
            5
            874

          • 404 or rel="canonical" for empty search results?
            haghadi
            haghadi
            1
            6
            608

          • How to redirect 302 status to 301 status code using wordpress
            ThompsonPaul
            ThompsonPaul
            0
            4
            1.3k

          • GWT returning 200 for robots.txt, but it's actually returning a 404?
            LesleyPaone
            LesleyPaone
            0
            2
            101

          • Search/Search Results Page & Duplicate Content
            AJPro
            AJPro
            0
            2
            272

          • Status code 404??!
            Francisco_Meza
            Francisco_Meza
            0
            3
            410

          • 4xx (client error) .....HELP with 404 Status Code
            AdoptionHelp
            AdoptionHelp
            0
            4
            813

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy