function errorHandler(req){
  if (req.status == 404) {
    console.log("Page not found");
    window.location.href = 'https://blog.xesygao.com';
  }
}