getStatusCode
Get the Status Code of an URL
This function only return the status code of a request.
For following redirections and get the final status code please combien this function with the premium one called checkRedirectChain.
- url: The URL to get the status
- number: The Status Code of the requested page
getStatusCode("https://github.com/NachoSEO")
// 200
getStatusCode("http://github.com/NachoSEO")
// 301
getStatusCode("https://github.com/invented-path")
// 404
- SEO checks of your site in Google sheets
- Control web migrations directly in Sheets
Last modified 7mo ago