Add status code and response handling

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