lib/unauthorized.error.js
function ErrorUnauthorized (message) {

  Error.call(this);

  // Add Information
  this.name    = 'ErrorUnauthorized';
  this.type    = 'client';
  this.status  = 401;
  if (message) {
    this.message = message;
  }

}
function ErrorUnauthorized (message) {

  Error.call(this);

  // Add Information
  this.name    = 'ErrorUnauthorized';
  this.type    = 'client';
  this.status  = 401;
  if (message) {
    this.message = message;
  }

}
function ErrorUnauthorized ( message ) { Error . call ( this ) ; // Add Information this . name = 'ErrorUnauthorized' ; this . type = 'client' ; this . status = 401 ; if ( message ) { this . message = message ; } }
Error - ErrorUnauthorized
Error - ErrorUnauthorized