app/App.js
/**
   *  Registers the not found handler to the app instance, if no route is found
   *  i.e. no response sent then it can be assumed that a 404 response is justified
   *
   *  @return {void}
   */
Registers the not found handler to the app instance, if no route is found
i.e. no response sent then it can be assumed that a 404 response is justified

@return {void}
Registers the not found handler to the app instance if no route is found i . e . no response sent then it can be assumed that a 404 response is justified @return { void }
registerNotFoundHandler() {
    this.getApp().use((req, res, next) => {
      if(res.headersSent === false) {
        let err = new Error();
        err.status = 404;
        next(err);
      }
    });
  }
registerNotFoundHandler ( ) { this . getApp ( ) . use ( ( req , res , next ) => { if ( res . headersSent === false ) { let err = new Error ( ) ; err . status = 404 ; next ( err ) ; } } ) ; }
Registers the not found handler to the app instance, if no route is found
  i.e.
Registers the not found handler to the app instance if no route is found i . e .