lib/not_found.error.js
function ErrorNotFound (message, data) {

  Error.call(this);

  // Add Information
  this.name    = 'ErrorNotFound';
  this.type    = 'client';
  this.status  = 404;

  if (message) {
    this.message = message;
  }

  if (data) {
    this.data = {};
    if (data.method) { this.data.method = data.method; }
    if (data.path)   { this.data.path   = data.path;   }
  }

}
function ErrorNotFound (message, data) {

  Error.call(this);

  // Add Information
  this.name    = 'ErrorNotFound';
  this.type    = 'client';
  this.status  = 404;

  if (message) {
    this.message = message;
  }

  if (data) {
    this.data = {};
    if (data.method) { this.data.method = data.method; }
    if (data.path)   { this.data.path   = data.path;   }
  }

}
function ErrorNotFound ( message , data ) { Error . call ( this ) ; // Add Information this . name = 'ErrorNotFound' ; this . type = 'client' ; this . status = 404 ; if ( message ) { this . message = message ; } if ( data ) { this . data = { } ; if ( data . method ) { this . data . method = data . method ; } if ( data . path ) { this . data . path = data . path ; } } }
Error - ErrorNotFound
Error - ErrorNotFound