Detect is the page loading failed by function Nightmare.hasError(). Check server status code by Nightmare.getStatusCode()