=HttpStatus(string url, [string requestMethod=GET]) : string

Returns the HTTP status code and its description. Use this function to find broken links.

HttpStatus also retrieves the Location header (useful for debugging redirects).

Use UnshortUrl to get the url of the last redirect.


=>"200 OK"

=>"301 Moved Permanently"

=>"The remote name could not be resolved: ‘'"

=>"404 Not Found"

Request method

By default, HttpStatus uses HTTP GET request method instead of the faster and preferable HEAD method. This is because some websites return 404 when using HEAD.

Get help with this function in the community →