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. Intermediate & Advanced SEO
    4. HTTP Status Bad Request - 404, but also, add a 400 HTTP Status in certain circumstances?

    HTTP Status Bad Request - 404, but also, add a 400 HTTP Status in certain circumstances?

    Intermediate & Advanced SEO
    4 2 312
    • 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.
    • EEE3
      EEE3 last edited by

      We currently have a custom 404 page set up for our clients, but the developer has it returning a HTTP 200 for the status code. Big no, no. I'm having that fixed right now.

      My question is, currently, the custom 404 page is only returned for urls with the extension .aspx:

      • For example : ilovepizza.com/pepperni.aspx would return a 404 page because the correct page is ilovepizza.com/pepperoni.aspx

      Any other format of URL without the extension (example ilovepizza.com/thumbtack) does not trigger the custom 404 page we've created, but it does trigger a server error with a 404 HTTP status page. I want to change this so this type of error also triggers the custom 404 page because it's more user-friendly and would return them to the website.

      My question: Is there any benefit to making the /thumbtack errors return the custom 404 page but with a 400 Bad Request HTTP Status?

      Kind of a novice here in those aspects, but does the 400 Bad Request status indicate that it was a user mistake and not a mistake created on the website?

      Other suggestions?

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

        Have you tried adding this 404 page to IIS -> Website properties -> Custom Errors tab, then under 404, point to the web page that you would like to show up when a file is not found?

        EEE3 1 Reply Last reply Reply Quote 0
        • EEE3
          EEE3 @OrionGroup last edited by

          Hi Scott,

          Thanks for the reply. The developers will take care of that part. Have you ever heard of anyone using 400 instead of 404 when it's more of a user-generated error?

          -EEE3

          OrionGroup 1 Reply Last reply Reply Quote 0
          • OrionGroup
            OrionGroup @EEE3 last edited by

            Unfortunately I don't have experience with that.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • 404 or 410 status code after deleting a real estate listing
              MikeGracia
              MikeGracia
              0
              4
              145

            • If UGC on my site also exists elsewhere, is that bad? How should I properly handle it?
              Todd_McDonald
              Todd_McDonald
              0
              8
              117

            • How should I go about repairing 400,000 404 error pages?
              stevecounsell
              stevecounsell
              0
              4
              127

            • Do you add 404 page into robot file or just add no index tag?
              Everett
              Everett
              0
              5
              13.7k

            • Problem with 404 and 500 Status code pages
              salvyy
              salvyy
              0
              8
              726

            • Experience with 307 HTTP status code
              sesertin
              sesertin
              0
              2
              522

            • Usage of HTTP Status Code 303
              tstolber1
              tstolber1
              0
              5
              3.9k

            • Googlebot HTTP 204 Status Code Handling?
              kurus
              kurus
              0
              3
              2.2k

            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