Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jul 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What is the http status code of a non existant domain?

    Im trying to find out what would the status code be of a non existent domain? Cannot find anything on searching this... anyone got any ideas? I know it wont be any of the 400's as the domain wont be on any server... what 500 error code would it be?

    501
    502
    503
    504
    505
    ?

    Any ideas thanks!

  • #2
    Regular Coder Custard7A's Avatar
    Join Date
    Jul 2010
    Location
    Australia
    Posts
    286
    Thanks
    32
    Thanked 33 Times in 33 Posts
    It would be more likely to be in the 400s than the 500s. 500s deal with server errors and come from the remote server, you're talking about a situation in which there is no remote server. I'm not sure if HTTP response headers even cover "no remote server associated with that domain".

  • #3
    Master Coder felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, Australia
    Posts
    6,456
    Thanks
    0
    Thanked 632 Times in 622 Posts
    It depends on the Domain Name Servers that you connect to the internet through. If you connect through OpenDNS then if a domain doesn't exist you get redirected to their own http://www.website-unavailable.com/ domain.

    No matter what domain is entered you are going to end up on a web page somewhere - it just depends on the domain name server as to where it will redirect you if it can't find the domain.

    Since the page you are redirected to when the domain doesn't exist is a page that does exist the http status code returned should be 200.
    Stephen
    Learn Modern JavaScript - http://javascriptexample.net/
    Helping others to solve their computer problem at http://www.felgall.com/

    Don't forget to start your JavaScript code with "use strict"; which makes it easier to find errors in your code.

  • #4
    New to the CF scene
    Join Date
    Jan 2012
    Posts
    7
    Thanks
    0
    Thanked 2 Times in 2 Posts
    I've seen something similar to a non-existent domain before.

    "410 - Gone
    A 410 status code is the 404's lesser known cousin. It indicates that a resource has permanently gone (a 404 status code gives no indication if a resource has gine permanently or temporarily), and no new address is known for it."

    Source


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •