code: function checkViews() {
    var self = this;
    // Nunjucks have 404 not found disabled by default
    if(this.config.views.engine === 'nunjucks' && typeof this.config.views.errors !== 'string') {
      self.errorViews = errorViews = {};
      return;
    }
    try {
      var errPath = Component.appPath(this.config.path.views, this.config.views.errors);
      var errorFiles = Crux.util.readDirectory(errPath, this.config.views.extension, null, true);
      _.forEach(errorFiles, function(fullPath) {
        var errCode = fullPath.replace(errPath, '').replace('.' + self.config.views.extension, '');
        var code = parseInt(errCode);
        if(!isNaN(code)) {
          errorViews[errCode] = fullPath.replace(Component.appPath(self.config.path.views), '');
        }
      });
    } catch(e) {}
    self.errorViews = errorViews;
  }
docs: /*
  Checking if we have the 404 and 500 error view pages.