Is it possible to hit servers like, through javascript or Ajax and get the response status like 200, 403. if it is possible can you share me that code.

My requirment is I need to pass a urls like, htps:// andwants to get response status like 200 or 403 throgh javascript or Ajax